Improve some definitions in sounds controller specs
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user