From a8bffd3bcec2eefc0898be6aaa40911930d592a0 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 20 Nov 2016 20:28:34 +1300 Subject: [PATCH] White space fix in spec --- spec/controllers/photos_controller_spec.rb | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb index 8f3b9d973..a46f4e419 100644 --- a/spec/controllers/photos_controller_spec.rb +++ b/spec/controllers/photos_controller_spec.rb @@ -73,18 +73,15 @@ describe PhotosController do describe "POST create" do before(:each) do - Photo.any_instance.stub(:flickr_metadata).and_return( { - title: "A Heartbreaking work of staggering genius", - license_name: "CC-BY", - license_url: "http://example.com/aybpl", - thumbnail_url: "http://example.com/thumb.jpg", - fullsize_url: "http://example.com/full.jpg", - link_url: "http://example.com" - }) + Photo.any_instance.stub(:flickr_metadata).and_return(title: "A Heartbreaking work of staggering genius", + license_name: "CC-BY", + license_url: "http://example.com/aybpl", + thumbnail_url: "http://example.com/thumb.jpg", + fullsize_url: "http://example.com/full.jpg", + link_url: "http://example.com") end describe "with valid params" do - it "attaches the photo to a planting" do member = FactoryGirl.create(:member) controller.stub(:current_member) { member } @@ -123,8 +120,8 @@ describe PhotosController do post :create, photo: { flickr_photo_id: photo.flickr_photo_id }, type: "harvest", id: harvest.id post :create, photo: { flickr_photo_id: photo.flickr_photo_id }, type: "harvest", id: harvest.id Photo.last.harvests.size.should eq 1 + end end - end describe "for the second time" do it "does not add a photo twice" do