g5_updatable 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/g5_updatable/client_updater.rb +6 -1
- data/lib/g5_updatable/version.rb +1 -1
- data/spec/dummy/log/test.log +1464 -0
- data/spec/lib/g5_updatable/client_updater_spec.rb +13 -1
- metadata +2 -2
@@ -47,6 +47,18 @@ describe G5Updatable::ClientUpdater do
|
|
47
47
|
|
48
48
|
its(:urn) { should eq("urn") }
|
49
49
|
its(:name) { should eq("Client Name") }
|
50
|
-
end
|
50
|
+
end
|
51
|
+
|
52
|
+
context "with an existing identical Client record" do
|
53
|
+
before do
|
54
|
+
client = FactoryGirl.create(:client, uid: uid, urn: "urn", name: "Client Name", properties: properties)
|
55
|
+
@original_updated_at = subject.updated_at
|
56
|
+
updater.update
|
57
|
+
end
|
58
|
+
|
59
|
+
it "updates its timestamp" do
|
60
|
+
expect(subject.reload.updated_at).to be > @original_updated_at
|
61
|
+
end
|
62
|
+
end
|
51
63
|
end
|
52
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_updatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|