mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 01:05:01 -04:00
Fix liked photo spec
This commit is contained in:
committed by
always-be-closing[bot]
parent
efe14d43cb
commit
3cd67bcc9f
@@ -31,9 +31,9 @@ describe Photo do
|
||||
it { expect(planting.crop.default_photo).to eq photo }
|
||||
|
||||
describe 'and someone likes the old photo' do
|
||||
before { Like.create(likeable: old_photo) }
|
||||
it { expect(planting.default_photo).to eq photo }
|
||||
it { expect(planting.crop.default_photo).to eq photo }
|
||||
before { FactoryBot.create :like, likeable: old_photo }
|
||||
it { expect(planting.default_photo).to eq old_photo }
|
||||
it { expect(planting.crop.default_photo).to eq old_photo }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user