Sha256: 33039c592093e1fa860718cbfddc9abe6d5e19bd7ea48d13417fe9c8fcbbed90

Contents?: true

Size: 712 Bytes

Versions: 31

Compression:

Stored size: 712 Bytes

Contents

# spec/support/features/session_helpers.rb
module Features
  module SessionHelpers
    def sign_up_with(email, password)
      Capybara.exact = true
      visit new_user_registration_path
      fill_in 'Email', with: email
      fill_in 'Password', with: password
      fill_in 'Password confirmation', with: password
      click_button 'Sign up'
    end

    def sign_in(login = 'user1')
      email = "#{login}@#{login}.com"
      user = User.create(:email => email, :password => "password", :password_confirmation => "password")
      visit new_user_session_path
      fill_in("user_email", :with => email) 
      fill_in("user_password", :with => "password") 
      click_button("Sign in")
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
blacklight-5.5.4 spec/support/features/session_helpers.rb
blacklight-5.6.0 spec/support/features/session_helpers.rb
blacklight-5.5.3 spec/support/features/session_helpers.rb
blacklight-5.5.2 spec/support/features/session_helpers.rb
blacklight-5.5.1 spec/support/features/session_helpers.rb
blacklight-5.5.0 spec/support/features/session_helpers.rb
blacklight-5.4.0 spec/support/features/session_helpers.rb
blacklight-5.4.0.rc1 spec/support/features/session_helpers.rb
blacklight-5.3.0 spec/support/features/session_helpers.rb
blacklight-5.0.3 spec/support/features/session_helpers.rb
blacklight-5.1.1 spec/support/features/session_helpers.rb
blacklight-5.2.0 spec/support/features/session_helpers.rb
blacklight-5.1.0 spec/support/features/session_helpers.rb
blacklight-5.0.2 spec/support/features/session_helpers.rb
blacklight-5.0.1 spec/support/features/session_helpers.rb
blacklight-5.0.0 spec/support/features/session_helpers.rb
blacklight-4.7.0 spec/support/features/session_helpers.rb
blacklight-4.7.0.pre1 spec/support/features/session_helpers.rb
blacklight-5.0.0.pre4 spec/support/features/session_helpers.rb
blacklight-4.6.3 spec/support/features/session_helpers.rb