test/integration/oauth_test.rb in opro-0.0.3 vs test/integration/oauth_test.rb in opro-0.1.0

- old
+ new

@@ -13,6 +13,15 @@ access_token = auth_grant.access_token visit "/?access_token=#{access_token}" assert has_content?('User is logged in') end + test 'invalid auth token shows user as logged OUT' do + user = create_user + auth_grant = create_auth_grant_for_user(user) + access_token = auth_grant.access_token + "foo" + visit "/?access_token=#{access_token}" + save_and_open_page + assert has_content?('NO logged in users') + end + end