Sha256: de4c3de60bac515f149df3800b37767393b63cc34156e912222b11cca43d45f1

Contents?: true

Size: 432 Bytes

Versions: 16

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module FeatureHelper
  def sign_in(user)
    visit lcms_engine.new_user_session_path
    fill_in :user_email, with: user.email
    fill_in :user_password, with: user.password
    click_button 'Log in'
    expect(page).to have_no_link 'Log In'
  end

  def logout
    visit lcms_engine.destroy_user_session_path
  end
end

RSpec.configure do |config|
  config.include FeatureHelper, type: :feature
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/support/feature_helper.rb
lcms-engine-0.5.4 spec/support/feature_helper.rb
lcms-engine-0.5.3 spec/support/feature_helper.rb
lcms-engine-0.5.2 spec/support/feature_helper.rb
lcms-engine-0.5.1 spec/support/feature_helper.rb
lcms-engine-0.5.0 spec/support/feature_helper.rb
lcms-engine-0.4.2 spec/support/feature_helper.rb
lcms-engine-0.4.1 spec/support/feature_helper.rb
lcms-engine-0.4.0 spec/support/feature_helper.rb
lcms-engine-0.3.1 spec/support/feature_helper.rb
lcms-engine-0.1.4 spec/support/feature_helper.rb
lcms-engine-0.3.0 spec/support/feature_helper.rb
lcms-engine-0.1.3 spec/support/feature_helper.rb
lcms-engine-0.2.0 spec/support/feature_helper.rb
lcms-engine-0.1.2 spec/support/feature_helper.rb
lcms-engine-0.1.0 spec/support/feature_helper.rb