Sha256: 1a6a418a63ce6eb9e79cfcb04b504a96fdcdfbb1f7c03b0e40f5b322af6410f0

Contents?: true

Size: 619 Bytes

Versions: 4

Compression:

Stored size: 619 Bytes

Contents

require 'test_helper'

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

  test "should track user" do
    current_sign_in_at = users(:julien).reload.current_sign_in_at
    sign_in users(:julien)
    assert_not_equal current_sign_in_at, users(:julien).reload.current_sign_in_at
  end

  test "remote authentication should not track user" do
    sign_in users(:julien)

    current_sign_in_at = users(:julien).reload.current_sign_in_at

    visit root_url(:host => 'test.host')
    click_link 'sign_in'

    assert_equal current_sign_in_at, users(:julien).reload.current_sign_in_at
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
janus-0.9.1 test/integration/users/trackable_test.rb
janus-0.9.0 test/integration/users/trackable_test.rb
janus-0.8.1 test/integration/users/trackable_test.rb
janus-0.8.0 test/integration/users/trackable_test.rb