Specify binary encoding when reading Sound file in SoundsController spec
This commit is contained in:
parent
222acb4e07
commit
e647821f6f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user