Sha256: 0a8328a83efdf82413c15600ef200e3cf816028f2a299868af939bbb74aacd78

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

require 'test_helper'

class Users::SessionsTest < ActionDispatch::IntegrationTest
  fixtures :all

  test "sign in and out" do
    visit new_user_session_path
    fill_in 'user_email', :with => users(:julien).email
    fill_in 'user_password', :with => 'secret'
    find('input[name=commit]').click

    assert_equal user_path, page.current_path
    find('h1').has_content?('Welcome ' + users(:julien).email)

    page.driver.submit :delete, destroy_user_session_path, {}
    assert_equal root_path, page.current_path
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
janus-0.10.1 test/integration/users/sessions_test.rb
janus-0.10.0 test/integration/users/sessions_test.rb
janus-0.9.1 test/integration/users/sessions_test.rb
janus-0.9.0 test/integration/users/sessions_test.rb
janus-0.8.1 test/integration/users/sessions_test.rb
janus-0.8.0 test/integration/users/sessions_test.rb