spec/ferver_spec.rb in ferver-1.2.0 vs spec/ferver_spec.rb in ferver-1.2.1
- old
+ new
@@ -147,10 +147,10 @@
describe 'downloading a file' do
context 'when requesting a file out of range' do
before do
- allow(file_list).to receive(:file_id_is_valid?).with(3).and_return(false)
+ allow(file_list).to receive(:file_id_valid?).with(3).and_return(false)
get '/files/3'
end
it 'should return not_found' do
expect(last_response).to be_not_found