Sha256: 409fb6ee2d826727e72a6fa4da765c3c6ebcc9043fdb32642ac4a237a24b1e64

Contents?: true

Size: 694 Bytes

Versions: 44

Compression:

Stored size: 694 Bytes

Contents

# Generated via
#  `rails generate curation_concerns:work <%= class_name %>`
require 'rails_helper'
include Warden::Test::Helpers

feature 'Create a <%= class_name %>' do
  context 'a logged in user' do
    let(:user_attributes) do
      { <%= Devise.authentication_keys.first %>: 'test@example.com' }
    end
    let(:user) do
      User.new(user_attributes) { |u| u.save(validate: false) }
    end

    before do
      login_as user
    end

    scenario do
      visit new_curation_concerns_<%= file_name %>_path
      fill_in 'Title', with: 'Test <%= class_name %>'
      click_button 'Create <%= class_name %>'
      expect(page).to have_content 'Test <%= class_name %>'
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
curation_concerns-1.6.3 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.6.2 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.6.1 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.6.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.5.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.4.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.3.3 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.3.2 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.3.1 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.3.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.2.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.1.2 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.1.1 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.1.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta10 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta9 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta8 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta7 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta6 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb