From e647821f6f6543b686eecbc29232c98ccb5e6c08 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Wed, 30 Nov 2011 21:28:53 +0000 Subject: [PATCH] Specify binary encoding when reading Sound file in SoundsController spec --- spec/controllers/sounds_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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