]> git.openstreetmap.org Git - rails.git/blob - test/system/oauth2_test.rb
Add frozen_string_literal comments to ruby files
[rails.git] / test / system / oauth2_test.rb
1 # frozen_string_literal: true
2
3 require "application_system_test_case"
4
5 class Oauth2Test < ApplicationSystemTestCase
6   def test_authorized_applications
7     sign_in_as(create(:user))
8     visit oauth_authorized_applications_path
9
10     assert_text "OpenStreetMap Web Site"
11
12     accept_alert do
13       click_on "Revoke Access"
14     end
15
16     assert_text "You have not yet authorized any OAuth 2 applications."
17   end
18 end