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-2.0.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.11.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.10.5 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.10.2 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.10.1 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.10.0 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.20 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.19 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.18 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.17 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.16 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.15 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.14 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.13 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.12 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.11 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.10 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.9 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.8 lib/agilibox/cucumber_helpers/sign_in.rb
agilibox-1.9.7 lib/agilibox/cucumber_helpers/sign_in.rb