g5_updatable 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/db/migrate/20141211211945_add_name_to_clients_and_locations.rb +9 -0
- data/lib/g5_updatable/client_updater.rb +2 -4
- data/lib/g5_updatable/locations_updater.rb +6 -8
- data/lib/g5_updatable/version.rb +1 -1
- data/spec/dummy/db/schema.rb +5 -1
- data/spec/dummy/log/development.log +17 -0
- data/spec/dummy/log/test.log +16157 -7055
- data/spec/lib/g5_updatable/client_updater_spec.rb +8 -1
- data/spec/lib/g5_updatable/locations_updater_spec.rb +8 -1
- metadata +5 -2
@@ -15,6 +15,8 @@ describe G5Updatable::ClientUpdater do
|
|
15
15
|
context "with no existing Client records" do
|
16
16
|
before { updater.update }
|
17
17
|
|
18
|
+
let(:name) { 'Client Name' }
|
19
|
+
|
18
20
|
it "creates a Client" do
|
19
21
|
expect(G5Updatable::Client.count).to eq(1)
|
20
22
|
end
|
@@ -25,7 +27,12 @@ describe G5Updatable::ClientUpdater do
|
|
25
27
|
|
26
28
|
its(:uid) { should eq(uid) }
|
27
29
|
its(:urn) { should eq("urn") }
|
28
|
-
its(:name) { should eq(
|
30
|
+
its(:name) { should eq(name) }
|
31
|
+
|
32
|
+
it 'sets name field so that consumers can easily sort by name' do
|
33
|
+
subject
|
34
|
+
expect(G5Updatable::Client.find_by_name(name)).to eq(subject)
|
35
|
+
end
|
29
36
|
end
|
30
37
|
|
31
38
|
context "with an existing Client record" do
|
@@ -16,6 +16,8 @@ describe G5Updatable::LocationsUpdater do
|
|
16
16
|
context "with no existing Location records" do
|
17
17
|
before { updater.update }
|
18
18
|
|
19
|
+
let(:name) { 'Location Name' }
|
20
|
+
|
19
21
|
it "creates a Location" do
|
20
22
|
expect(G5Updatable::Location.count).to eq(1)
|
21
23
|
end
|
@@ -28,7 +30,12 @@ describe G5Updatable::LocationsUpdater do
|
|
28
30
|
its(:uid) { should eq(uid) }
|
29
31
|
its(:urn) { should eq("urn") }
|
30
32
|
its(:client_uid) { should eq("client_uid") }
|
31
|
-
its(:name) { should eq(
|
33
|
+
its(:name) { should eq(name) }
|
34
|
+
|
35
|
+
it 'sets name field so that consumers can easily sort by name' do
|
36
|
+
subject
|
37
|
+
expect(G5Updatable::Location.find_by_name(name)).to eq(subject)
|
38
|
+
end
|
32
39
|
end
|
33
40
|
|
34
41
|
context "with an existing Location record" do
|
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- db/migrate/20140709222005_create_g5_updatable_clients_and_locations.rb
|
163
163
|
- db/migrate/20141030211945_create_integration_setting.rb
|
164
164
|
- db/migrate/20141122211945_remove_integration_setting.rb
|
165
|
+
- db/migrate/20141211211945_add_name_to_clients_and_locations.rb
|
165
166
|
- lib/g5_updatable.rb
|
166
167
|
- lib/g5_updatable/client_feed_processor.rb
|
167
168
|
- lib/g5_updatable/client_updater.rb
|
@@ -214,6 +215,7 @@ files:
|
|
214
215
|
- spec/dummy/db/migrate/20140714225203_create_favorite_foods.rb
|
215
216
|
- spec/dummy/db/schema.rb
|
216
217
|
- spec/dummy/db/test.sqlite3
|
218
|
+
- spec/dummy/log/development.log
|
217
219
|
- spec/dummy/log/test.log
|
218
220
|
- spec/dummy/public/404.html
|
219
221
|
- spec/dummy/public/422.html
|
@@ -297,6 +299,7 @@ test_files:
|
|
297
299
|
- spec/dummy/db/migrate/20140714225203_create_favorite_foods.rb
|
298
300
|
- spec/dummy/db/schema.rb
|
299
301
|
- spec/dummy/db/test.sqlite3
|
302
|
+
- spec/dummy/log/development.log
|
300
303
|
- spec/dummy/log/test.log
|
301
304
|
- spec/dummy/public/404.html
|
302
305
|
- spec/dummy/public/422.html
|