Sha256: 9f0f41a42aefa1b74b1d440d4d602db4c389a20c77eccad699313ee404889f10
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
require 'test_helper' class Users::RememberableTest < ActionDispatch::IntegrationTest fixtures :all test "should remember user across sessions" do sign_in users(:julien), :remember_me => true assert_authenticated close_user_session visit root_url assert_authenticated sign_out :user visit root_url assert_not_authenticated end test "registration should remember user" do sign_up({ :email => 'toto@example.com', :password => 'my password' }, :scope => :user) assert_authenticated close_user_session visit root_url assert_authenticated sign_out :user visit root_url assert_not_authenticated end end
Version data entries
4 entries across 4 versions & 1 rubygems