mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
18 lines
491 B
Ruby
18 lines
491 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
describe PlantingsController, '#show' do
|
|
let(:planting) { create(:planting) }
|
|
let(:page) { Capybara.string(response.body) }
|
|
|
|
before do
|
|
create(:job, owner: planting.owner, planting:, name: 'Stake the tomatoes')
|
|
get planting_path(planting)
|
|
end
|
|
|
|
it 'lists a job planned for the planting, though it has never been crossed off or put back' do
|
|
expect(page).to have_css('.card.job', text: 'Stake the tomatoes')
|
|
end
|
|
end
|