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