Sha256: 5d7736883c5d99f47728e4fe9b83888532b2514de1444bf245b53dda7082113a

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 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)
    
    visit destroy_user_session_path
    assert_equal root_path, page.current_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
janus-0.5.0 test/integration/users/sessions_test.rb