Sha256: ecb4e7900bf45df9777b47cd50569ce3c78362b4d09d4e8b2670b3286af77e7d

Contents?: true

Size: 336 Bytes

Versions: 73

Compression:

Stored size: 336 Bytes

Contents

module CapybaraSignIn
  include ::Warden::Test::Helpers if defined?(Warden)

  def sign_out
    logout
  end

  def sign_in(user)
    sign_out
    visit(new_user_session_path)
    fill_in "user_email",    with: user.email
    fill_in "user_password", with: user.password
    find("[type=submit]").click
  end
end

World(CapybaraSignIn)

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
agilibox-1.3.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.2.3 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.2.2 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.2.1 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.2.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.1.0 features/support/sign_in.rb
agilibox-1.0.15 features/support/sign_in.rb
agilibox-1.0.14 features/support/sign_in.rb
agilibox-1.0.13 features/support/sign_in.rb
agilibox-1.0.12 features/support/sign_in.rb
agilibox-1.0.11 features/support/sign_in.rb
agilibox-1.0.10 features/support/sign_in.rb
agilibox-1.0.9 features/support/sign_in.rb