spec/primo_search_spec.rb in libis-services-0.0.2 vs spec/primo_search_spec.rb in libis-services-0.0.3
- old
+ new
@@ -9,10 +9,10 @@
context 'query' do
it 'default return result' do
result = subject.query 'foo'
expect(result.keys).to eq [:count, :from, :to, :step, :data]
- expect(result[:data].size).to eq [result[:count], result[:step]].min
+ expect(result[:data].size).to eq [result[:count], result[:step] - 1].min
end
end
context 'find' do