Improve some definitions in sounds controller specs

This commit is contained in:
Thibault Jouan 2011-09-22 20:00:06 +00:00
parent d153755296
commit 2d478352bd

View File

@ -12,12 +12,12 @@ describe SoundsController do
get :show, :id => sound.id get :show, :id => sound.id
end end
it 'sends the sound file 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)
end end
it 'sets the sound file mime-type as the response content-type' do it 'sets the sound mime-type as the response content-type' do
do_show do_show
response.content_type.should == sound.mime_type response.content_type.should == sound.mime_type
end end