update spec to not have links to plantings with not dates

This commit is contained in:
Brenda Wallace
2019-07-08 10:07:52 +12:00
parent 5c6e65cd01
commit e080407deb

View File

@@ -113,7 +113,7 @@ describe "member profile", js: true do
it { expect(page).to have_link href: planting_path(old_planting) }
it { expect(page).to have_link href: planting_path(finished_planting) }
it { expect(page).to have_link href: planting_path(no_planted_at_planting) }
it { expect(page).to have_text 'unknown date' }
it { expect(page).not_to have_text href: planting_path(no_planted_at_planting) }
end
context 'member has seeds' do