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.
@@ -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.1
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-22 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails