diff --git a/spec/controllers/sounds_controller_spec.rb b/spec/controllers/sounds_controller_spec.rb index d0de049..3274507 100644 --- a/spec/controllers/sounds_controller_spec.rb +++ b/spec/controllers/sounds_controller_spec.rb @@ -14,7 +14,7 @@ describe SoundsController do it 'sets the sound file content as the response body' do do_show - response.body.should == File.read(sound.path) + response.body.should == File.read(sound.path, :encoding => 'BINARY') end it 'sets the sound mime-type as the response content-type' do