Fix /settings/applications
rejecting scopes parameter (#33798)
This commit is contained in:
parent
f79b96a5ef
commit
cf820b2eca
2 changed files with 9 additions and 7 deletions
|
@ -38,6 +38,9 @@ RSpec.describe 'Settings applications page' do
|
|||
expect(page)
|
||||
.to have_content(I18n.t('doorkeeper.applications.index.title'))
|
||||
.and have_content('My new app')
|
||||
.and have_content('read')
|
||||
.and have_content('write')
|
||||
.and have_content('follow')
|
||||
end
|
||||
|
||||
it 'does not save with invalid form values' do
|
||||
|
@ -73,10 +76,12 @@ RSpec.describe 'Settings applications page' do
|
|||
|
||||
fill_in form_app_name_label,
|
||||
with: 'My new app name with a new value'
|
||||
check 'push', id: :doorkeeper_application_scopes_push
|
||||
submit_form
|
||||
|
||||
expect(page)
|
||||
.to have_content('My new app name with a new value')
|
||||
.and have_checked_field('push', id: :doorkeeper_application_scopes_push)
|
||||
end
|
||||
|
||||
it 'does not update with wrong values' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue