summaryrefslogtreecommitdiff
path: root/users/test/support/auth_test_helper.rb
blob: c30421f08c1f8f2a6ada74264a41cb1cc4d8b4b5 (plain)
1
2
3
4
5
6
7
module AuthTestHelper

  def assert_access_denied
    assert_equal({:alert => "Not authorized"}, flash.to_hash)
    assert_redirected_to login_path
  end
end