Use ruby 2.x hash syntax
This commit is contained in:
@@ -11,12 +11,12 @@ describe SoundsController do
|
||||
let(:sound) { FactoryGirl.create(:sound) }
|
||||
|
||||
def do_show
|
||||
get :show, :id => sound.id
|
||||
get :show, id: sound.id
|
||||
end
|
||||
|
||||
it 'sets the sound file content as the response body' do
|
||||
do_show
|
||||
response.body.should == File.read(sound.path, :encoding => 'BINARY')
|
||||
response.body.should == File.read(sound.path, encoding: 'BINARY')
|
||||
end
|
||||
|
||||
it 'sets the sound mime-type as the response content-type' do
|
||||
|
Reference in New Issue
Block a user