From d71f6f9fc413c5544ea915213709bf1827f4253d Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Mon, 4 Feb 2019 21:17:41 +1300 Subject: [PATCH] Rubocop tidy up --- spec/controllers/photos_controller_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb index 01d4b3852..db0ebf8fb 100644 --- a/spec/controllers/photos_controller_spec.rb +++ b/spec/controllers/photos_controller_spec.rb @@ -9,21 +9,21 @@ describe PhotosController do describe 'all photos' do let!(:photo) { FactoryBot.create :photo } before { get :index } - it { expect(assigns(:photos)).to eq [ photo ]} + it { expect(assigns(:photos)).to eq [photo] } end describe 'crop photos' do let!(:photo) { FactoryBot.create :photo, owner: member } let!(:crop_photo) { FactoryBot.create :photo, owner: member } - let!(:planting) { FactoryBot.create :planting, crop: crop, owner: member} + let!(:planting) { FactoryBot.create :planting, crop: crop, owner: member } let!(:crop) { FactoryBot.create :crop } before do planting.photos << crop_photo - get :index, params: {crop_slug: crop.to_param } + get :index, params: { crop_slug: crop.to_param } end - it { expect(assigns(:crop)).to eq crop} - it { expect(assigns(:photos)).to eq [ crop_photo ]} + it { expect(assigns(:crop)).to eq crop } + it { expect(assigns(:photos)).to eq [crop_photo] } end end