test/integration/controller_test.rb in quo_vadis-2.2.2 vs test/integration/controller_test.rb in quo_vadis-2.2.4

- old
+ new

@@ -12,9 +12,17 @@ QuoVadis.session_lifetime_extend_to_end_of_day false QuoVadis.session_idle_timeout :lifetime end + test 'shortcut login' do + get secret_articles_path(login: User.first.to_global_id) + + assert_response :success + assert_equal secret_articles_path, path + end + + test 'require_authentication when not logged in' do get secret_articles_path assert_redirected_to quo_vadis.login_path assert_equal 'Please log in first.', flash[:notice]