Commit edffc54b authored by Ron Chan's avatar Ron Chan

Fixed spec of group oauth application

parent 61913512
...@@ -72,7 +72,7 @@ RSpec.describe Groups::Settings::ApplicationsController do ...@@ -72,7 +72,7 @@ RSpec.describe Groups::Settings::ApplicationsController do
end end
it 'creates the application' do it 'creates the application' do
create_params = attributes_for(:application, trusted: true, confidential: false, scopes: ['api']) create_params = attributes_for(:application, trusted: false, confidential: false, scopes: ['api'])
expect do expect do
post :create, params: { group_id: group, doorkeeper_application: create_params } post :create, params: { group_id: group, doorkeeper_application: create_params }
...@@ -151,7 +151,7 @@ RSpec.describe Groups::Settings::ApplicationsController do ...@@ -151,7 +151,7 @@ RSpec.describe Groups::Settings::ApplicationsController do
expect(response).to redirect_to(group_settings_application_path(group, application)) expect(response).to redirect_to(group_settings_application_path(group, application))
expect(application) expect(application)
.to have_attributes(redirect_uri: 'http://example.com/', trusted: true, confidential: false) .to have_attributes(redirect_uri: 'http://example.com/', trusted: false, confidential: false)
end end
it 'renders the application form on errors' do it 'renders the application form on errors' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment