Test oauth2 application list with moderator permission icon
This commit is contained in:
parent
cee9818dfc
commit
212ace7ef1
1 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,16 @@ class Oauth2ApplicationsControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_select "tbody tr", 2
|
||||
end
|
||||
|
||||
def test_index_with_moderator_app
|
||||
user = create(:user)
|
||||
create(:oauth_application, :owner => user, :scopes => "write_redactions")
|
||||
|
||||
session_for(user)
|
||||
|
||||
get oauth_applications_path
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_new
|
||||
user = create(:user)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue