From 02fa065571192a99016cbd99ece0c3b71b3c8a36 Mon Sep 17 00:00:00 2001 From: Pistos Date: Mon, 7 Nov 2011 00:31:01 -0500 Subject: [PATCH] Whitespace cleanup. --- spec/controllers/photos_controller_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb index 957c99157..473bc450e 100644 --- a/spec/controllers/photos_controller_spec.rb +++ b/spec/controllers/photos_controller_spec.rb @@ -13,23 +13,23 @@ describe PhotosController do sign_in :user, alice request.env["HTTP_REFERER"] = '' end - + describe '#create' do before do @params = {:photo => {:aspect_ids => "all"}, :qqfile => Rack::Test::UploadedFile.new("spec/fixtures/button.png", "image/png") } end - + it 'accepts a photo from a regular form submission' do lambda { post :create, @params }.should change(Photo, :count).by(1) end - + it 'returns application/json when possible' do request.env['HTTP_ACCEPT'] = 'application/json' post(:create, @params).headers['Content-Type'].should match 'application/json.*' end - + it 'returns text/html by default' do request.env['HTTP_ACCEPT'] = 'text/html,*/*' post(:create, @params).headers['Content-Type'].should match 'text/html.*' @@ -59,10 +59,10 @@ describe PhotosController do describe '#index' do it "succeeds without any available pictures" do get :index, :person_id => Factory(:person).id.to_s - + response.should be_success end - + it "displays the logged in user's pictures" do get :index, :person_id => alice.person.id.to_s assigns[:person].should == alice.person @@ -161,7 +161,7 @@ describe PhotosController do it "succeeds" do response.should be_success end - + it "assigns the photo" do assigns[:photo].should == @photo end