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