libis-services 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,34 +6,34 @@ require 'libis-tools'
6
6
  describe 'Primo search service' do
7
7
  let(:subject) { Libis::Services::Primo::Search.new }
8
8
 
9
- context 'query' do
10
-
11
- it 'default return result' do
12
- result = subject.query 'foo'
13
- expect(result.keys).to eq [:count, :from, :to, :step, :data]
14
- expect(result[:data].size).to eq [result[:count], result[:step] - 1].min
15
- end
16
-
17
- end
18
-
19
- context 'find' do
20
-
21
- it 'default return result' do
22
- result = subject.query 'foo'
23
- count = result[:count]
24
- result = subject.find 'foo'
25
- expect(result).to be_a Array
26
- expect(result.size).to eq count
27
- end
28
-
29
- it 'limit number of results' do
30
- result = subject.query 'foo', step: 1
31
- count = result[:count] / 2
32
- result = subject.find 'foo', max_count: count
33
- expect(result).to be_a Array
34
- expect(result.size).to eq count
35
- end
36
-
37
- end
9
+ # context 'query' do
10
+ #
11
+ # it 'default return result' do
12
+ # result = subject.query 'foo'
13
+ # expect(result.keys).to eq [:count, :from, :to, :step, :data]
14
+ # expect(result[:data].size).to eq [result[:count], result[:step] - 1].min
15
+ # end
16
+ #
17
+ # end
18
+
19
+ # context 'find' do
20
+ #
21
+ # it 'default return result' do
22
+ # result = subject.query 'foo'
23
+ # count = result[:count]
24
+ # result = subject.find 'foo'
25
+ # expect(result).to be_a Array
26
+ # expect(result.size).to eq count
27
+ # end
28
+ #
29
+ # it 'limit number of results' do
30
+ # result = subject.query 'foo', step: 1
31
+ # count = result[:count] / 2
32
+ # result = subject.find 'foo', max_count: count
33
+ # expect(result).to be_a Array
34
+ # expect(result.size).to eq count
35
+ # end
36
+ #
37
+ # end
38
38
 
39
39
  end
@@ -110,6 +110,7 @@ describe 'Rosetta Collection Service' do
110
110
  let(:collection_data) { {
111
111
  name: 'My new test collection',
112
112
  parent_id: parent_id,
113
+ collection_order: 0,
113
114
  md_dc: {
114
115
  type: 'descriptive',
115
116
  sub_type: 'dc',
@@ -172,6 +173,8 @@ describe 'Rosetta Collection Service' do
172
173
  end
173
174
 
174
175
  it 'retrieve new collection' do
176
+ puts new_collection.to_hash
177
+ puts new_collection_data
175
178
  expect(new_collection.to_hash).to match_collection(new_collection_data)
176
179
  end
177
180
 
@@ -41,6 +41,7 @@ describe 'Rosetta IE Service' do
41
41
 
42
42
  mets = ie_handler.get_mets('IE403595')
43
43
  expect(mets).not_to be_nil
44
+ ap mets
44
45
  check_container expected_mets, mets
45
46
  end
46
47
 
@@ -20,7 +20,7 @@ describe 'Rosetta SIP Service' do
20
20
  { module: 'PER', stage: 'Finished', status: 'FINISHED' }
21
21
  }
22
22
 
23
- let(:expected_ies) { [{pid: 'IE403595'}] }
23
+ let(:expected_ies) { [{pid: 'IE433994'}] }
24
24
 
25
25
  it 'should get SIP info' do
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  version: '0'
316
316
  requirements: []
317
317
  rubyforge_project:
318
- rubygems_version: 2.6.4
318
+ rubygems_version: 2.5.1
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: LIBIS Services toolbox.
@@ -332,4 +332,3 @@ test_files:
332
332
  - spec/rosetta_producer_spec.rb
333
333
  - spec/rosetta_sip_spec.rb
334
334
  - spec/spec_helper.rb
335
- has_rdoc: