anchor.diff:  require 'rails_helper'
   include Warden::Test::Helpers
   
  -RSpec.feature 'Create a <%= class_name %>', js: true do
  +# NOTE: If you generated more than one work, you have to set "js: true"
  +RSpec.feature 'Create a <%= class_name %>', js: false do
     context 'a logged in user' do
       let(:user_attributes) do
         { <%= Devise.authentication_keys.first %>: 'test@example.com' }
  
positive.code:     end
  
      before do
        login_as user
      end
  
  
negative.code:       visit '/dashboard'
        click_link "Works"
        click_link "Add new work"
  
        # If you generate more than one work uncomment these lines
        # choose "payload_concern", option: "<%= class_name %>"
        # click_button "Create work"
  
        expect(page).to have_content "Add New <%= human_name %>"
      end
    end
  end
  