Fix specs
This commit is contained in:
parent
07cd97a90f
commit
3b9c864aff
|
@ -31,7 +31,7 @@ describe Travis::Api::V2::Http::Log do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "with parts numbers specified" do
|
describe "with parts numbers specified" do
|
||||||
let(:data) { described_class.new(log, part_numbers: "1,3", chunked: true).data }
|
let(:data) { described_class.new(log, 'part_numbers' => "1,3", chunked: true).data }
|
||||||
it 'returns only requested parts' do
|
it 'returns only requested parts' do
|
||||||
parts = log.parts.find_all { |p| p.number == 1 }
|
parts = log.parts.find_all { |p| p.number == 1 }
|
||||||
log.parts.expects(:where).with(number: [1, 3]).returns(parts)
|
log.parts.expects(:where).with(number: [1, 3]).returns(parts)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user