Sha256: 1afa9aa21053c49c0a0cdb259ae39a4f3f1369362bb4ab10f183b877fa0bba80

Contents?: true

Size: 280 Bytes

Versions: 4

Compression:

Stored size: 280 Bytes

Contents

module FeatureHelper
  def login_as_admin
    admin = create(:admin_user, password: 'test123', password_confirmation: 'test123')
    visit spree.admin_path
    fill_in 'Email', with: admin.email
    fill_in 'Password', with: 'test123'
    click_button 'Login'
    admin
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
solidus_comments-1.0.1 spec/support/feature_helper.rb
solidus_log_viewer-1.0.0 spec/support/feature_helper.rb
solidus_papertrail-1.0.0 spec/support/feature_helper.rb
solidus_comments-1.0.0 spec/support/feature_helper.rb