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.0.0.beta5 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta4 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta3 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta2 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-1.0.0.beta1 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.14.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.14.0.pre4 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.14.0.pre3 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.14.0.pre2 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.14.0.pre1 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.13.1 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.13.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre9 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre8 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre7 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre6 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre5 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre4 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb
curation_concerns-0.12.0.pre3 lib/generators/curation_concerns/work/templates/feature_spec.rb.erb