]> git.openstreetmap.org Git - rails.git/blob - test/system/oauth2_test.rb
Merge remote-tracking branch 'upstream/pull/4972'
[rails.git] / test / system / oauth2_test.rb
1 require "application_system_test_case"
2
3 class Oauth2Test < ApplicationSystemTestCase
4   def test_authorized_applications
5     sign_in_as(create(:user))
6     visit oauth_authorized_applications_path
7
8     assert_text "OpenStreetMap Web Site"
9
10     accept_alert do
11       click_on "Revoke Access"
12     end
13
14     assert_text "You have not yet authorized any OAuth 2 applications."
15   end
16 end