-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yield application to allow_grant_flow_for_client? client credentials … #1400
Yield application to allow_grant_flow_for_client? client credentials … #1400
Conversation
Something wrong with the specs. UPD: see above comment
doorkeeper/lib/doorkeeper/oauth/authorization/token.rb Lines 11 to 17 in 50efdb0
|
Ah, OK, I've checked ./spec/lib/oauth/client_credentials_integration_spec.rb:11 and seems like it's incorrect. You could just replace the let(:client) { Doorkeeper::OAuth::Client.new(FactoryBot.build_stubbed :application) } And spec must pass |
@@ -6,7 +6,7 @@ | |||
let(:server) { Doorkeeper.configuration } | |||
|
|||
context "with a valid request" do | |||
let(:client) { FactoryBot.create :application } | |||
let(:client) { Doorkeeper::OAuth::Client.new(FactoryBot.build_stubbed :application) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/NestedParenthesizedCalls: Add parentheses to nested method call FactoryBot.build_stubbed :application.
Resolved the changelog merge conflict and updated the integration spec now. |
…validation Closes #1398
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚝
Thanks @aclemons ! |
…validation
Closes #1398