Update specs to new rspec syntax

This commit is contained in:
Thibault Jouan
2014-04-01 18:15:44 +00:00
parent 99d106cf36
commit 4cef7aeab9
32 changed files with 173 additions and 179 deletions

View File

@@ -16,12 +16,12 @@ describe SoundsController do
it 'sets the sound file content as the response body' do
do_show
response.body.should == File.read(sound.path, encoding: 'BINARY')
expect(response.body).to eq File.read(sound.path, encoding: 'BINARY')
end
it 'sets the sound mime-type as the response content-type' do
do_show
response.content_type.should == sound.mime_type
expect(response.content_type).to eq sound.mime_type
end
end
end