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.9.6 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.5 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.4 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.3 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.1 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.8.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.7.4 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.7.3 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.7.2 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.7.1 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.7.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.6.2 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.6.1 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.6.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.5.13 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.5.12 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.5.11 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.5.10 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.5.9 lib/agilibox/cucumber_helpers/sign_in.rb