celsius-primo 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ describe Celsius::Primo::Adapter do
27
27
  mget_request = YAML.load(read_asset("adapter/mget/mget_request.yml"))
28
28
  expected_mget_result = YAML.load(read_asset("adapter/mget/mget_result.yml"))
29
29
 
30
- expect(adapter.mget(mget_request)).to eq(expected_mget_result)
30
+ expect(mget_result = adapter.mget(mget_request)).to eq(expected_mget_result)
31
31
  end
32
32
  end
33
33
 
@@ -37,13 +37,14 @@ describe Celsius::Primo::Adapter do
37
37
  it "returns a normalized search result", :vcr do
38
38
  [
39
39
  ["#{asset_dir}/search_request.yml", "#{asset_dir}/search_result.yml"],
40
- ["#{asset_dir}/search_request_with_empty_result.yml", "#{asset_dir}/empty_search_result.yml"]
40
+ ["#{asset_dir}/search_request_with_empty_result.yml", "#{asset_dir}/empty_search_result.yml"],
41
+ ["#{asset_dir}/search_request_for_multiple_publishers.yml", "#{asset_dir}/search_result_with_multiple_publishers.yml"]
41
42
  ]
42
43
  .each do |search_request_yaml_filename, search_response_yaml_filename|
43
44
  search_request = YAML.load(read_asset(search_request_yaml_filename))
44
45
  expected_search_result = YAML.load(read_asset(search_response_yaml_filename))
45
46
 
46
- expect(adapter.search(search_request)).to eq(expected_search_result)
47
+ expect(search_result = adapter.search(search_request)).to eq(expected_search_result)
47
48
  end
48
49
  end
49
50
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celsius-primo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Sievers
@@ -214,8 +214,10 @@ files:
214
214
  - spec/assets/adapter/mget/mget_result.yml
215
215
  - spec/assets/adapter/search/empty_search_result.yml
216
216
  - spec/assets/adapter/search/search_request.yml
217
+ - spec/assets/adapter/search/search_request_for_multiple_publishers.yml
217
218
  - spec/assets/adapter/search/search_request_with_empty_result.yml
218
219
  - spec/assets/adapter/search/search_result.yml
220
+ - spec/assets/adapter/search/search_result_with_multiple_publishers.yml
219
221
  - spec/cassettes/Celsius_Primo_Adapter/_mget/returns_a_normalzed_mget_result.yml
220
222
  - spec/cassettes/Celsius_Primo_Adapter/_search/returns_a_normalized_search_result.yml
221
223
  - spec/celsius-primo/adapter_spec.rb
@@ -250,8 +252,10 @@ test_files:
250
252
  - spec/assets/adapter/mget/mget_result.yml
251
253
  - spec/assets/adapter/search/empty_search_result.yml
252
254
  - spec/assets/adapter/search/search_request.yml
255
+ - spec/assets/adapter/search/search_request_for_multiple_publishers.yml
253
256
  - spec/assets/adapter/search/search_request_with_empty_result.yml
254
257
  - spec/assets/adapter/search/search_result.yml
258
+ - spec/assets/adapter/search/search_result_with_multiple_publishers.yml
255
259
  - spec/cassettes/Celsius_Primo_Adapter/_mget/returns_a_normalzed_mget_result.yml
256
260
  - spec/cassettes/Celsius_Primo_Adapter/_search/returns_a_normalized_search_result.yml
257
261
  - spec/celsius-primo/adapter_spec.rb