Specify binary encoding when reading Sound file in SoundsController spec

This commit is contained in:
Thibault Jouan 2011-11-30 21:28:53 +00:00
parent 222acb4e07
commit e647821f6f

View File

@ -14,7 +14,7 @@ describe SoundsController do
it 'sets the sound file content as the response body' do it 'sets the sound file content as the response body' do
do_show do_show
response.body.should == File.read(sound.path) response.body.should == File.read(sound.path, :encoding => 'BINARY')
end end
it 'sets the sound mime-type as the response content-type' do it 'sets the sound mime-type as the response content-type' do