acs-ldap 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acs/ldap/mapper.rb +1 -1
- data/lib/acs/ldap/pusher.rb +12 -5
- data/lib/acs/ldap/version.rb +1 -1
- data/log/acs_ldap.log +372 -359
- data/spec/acs/ldap/pusher_spec.rb +9 -1
- metadata +2 -2
@@ -41,10 +41,18 @@ describe Acs::Ldap::Pusher, order: :defined do
|
|
41
41
|
|
42
42
|
it "should be possible to update a User" do
|
43
43
|
@user.givenName = "Vador Dark"
|
44
|
-
expect(@pusher.update(@user
|
44
|
+
expect(@pusher.update(@user).success?).to eq true
|
45
45
|
expect(@pusher.find_by('uid', 2).data[0][:givenName]).to eq ["Vador Dark"]
|
46
46
|
end
|
47
47
|
|
48
|
+
it "should be possible to update only an attribute for a User" do
|
49
|
+
@user.givenName = "D V"
|
50
|
+
@user.mail = "dv@adharacs.lan"
|
51
|
+
expect(@pusher.update(@user, {changes: {givenName: ["Vador Dark" => "D V"]}}).success?).to eq true
|
52
|
+
expect(@pusher.find_by('uid', 2).data[0][:givenName]).to eq ["D V"]
|
53
|
+
expect(@pusher.find_by('uid', 2).data[0][:mail]).to eq ["dvador@adharacs.lan"]
|
54
|
+
end
|
55
|
+
|
48
56
|
it "should be possible to remove a User" do
|
49
57
|
expect(@pusher.destroy(@user).success?).to eq true
|
50
58
|
expect(@pusher.count).to eq 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acs-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terranova David
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|