mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 18:56:06 -04:00
* Ruby 3.2/Bundler 2.4 * Fix creation * Upgrade to js-routes 2. Put all js routes into a global namespace. * Remove js-routes * Remove * Adjust ownership * Appease codeclimate for the nth time * Fix deprecation warning by explicitly calling to_fs * Fix deprecation warning by explicitly calling to_fs * Fix deprecation warning by explicitly calling to_fs * Swap to will paginate successor for bootstrap * Update app/views/members/show.html.haml * Update app/views/plantings/index.rss.haml * Update .env * Update .devcontainer/.env * Fix spec * Update spec * Fix spec * Pin to 2.4.22 * 3 space indent * Regenerate * Update rubocop * Rubocop * More rubocop * Regenerate * Fix Capybara/NegationMatcher
26 lines
660 B
Ruby
26 lines
660 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
describe "crop wrangling button" do
|
|
context 'not signed in' do
|
|
before { visit crops_path }
|
|
|
|
it { expect(page).to have_no_link "Wrangle Crops", href: wrangle_crops_path }
|
|
end
|
|
|
|
context "signed in, but not a crop wrangler" do
|
|
include_context 'signed in member'
|
|
before { visit crops_path }
|
|
|
|
it { expect(page).to have_no_link "Wrangle Crops", href: wrangle_crops_path }
|
|
end
|
|
|
|
context "signed in crop wrangler" do
|
|
include_context 'signed in crop wrangler'
|
|
before { visit crops_path }
|
|
|
|
it { expect(page).to have_link "Wrangle Crops", href: wrangle_crops_path }
|
|
end
|
|
end
|