Sha256: ebb0570a65d8212dc84b837bd68cc5c6b49fee081e54c0c77c7e8c57ee5560a8
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 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 refute_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 refute_authenticated end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
janus-0.10.1 | test/integration/users/rememberable_test.rb |
janus-0.10.0 | test/integration/users/rememberable_test.rb |