Files
growstuff/spec/features/crops/requested_crops_spec.rb
Daniel O'Connor d1f754a288 Rubocop
2022-11-08 00:23:38 +10:30

17 lines
456 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
describe "Requesting Crops" do
let!(:requested_crop) { create(:crop, requester: member, approval_status: 'pending', name: 'puha for dinner') }
context 'signed in' do
include_context 'signed in member'
before { visit requested_crops_path }
it "creating a crop with multiple scientific and alternate name", :js do
expect(page).to have_content "puha for dinner"
end
end
end