Skip to content

Commit 3084791

Browse files
committed
Change message for client_credentials conversion
1 parent 12b6110 commit 3084791

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/doorkeeper/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def client_credentials(*methods)
9090
}.reject(&:nil?)
9191

9292
if client_authentication.empty?
93-
Kernel.warn("[DOORKEEPER] No known client_credentials method detected, ignoring option")
93+
Kernel.warn("[DOORKEEPER] No known client_credentials method detected, cannot automatically convert to client_authentication option")
9494
else
9595
@config.instance_variable_set(:@client_credentials_methods, client_authentication.concat([:none]))
9696
end

spec/lib/config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
/\[DOORKEEPER\] Unknown client_credentials method detected: from_digest/,
297297
).once
298298
expect(Kernel).to receive(:warn).with(
299-
/\[DOORKEEPER\] No known client_credentials method detected, ignoring option/
299+
/\[DOORKEEPER\] No known client_credentials method detected, cannot automatically convert to client_authentication option/
300300
).once
301301

302302
Doorkeeper.configure do
@@ -313,7 +313,7 @@
313313
/\[DOORKEEPER\] Unknown client_credentials method detected, received callable block/,
314314
).once
315315
expect(Kernel).to receive(:warn).with(
316-
/\[DOORKEEPER\] No known client_credentials method detected, ignoring option/
316+
/\[DOORKEEPER\] No known client_credentials method detected, cannot automatically convert to client_authentication option/
317317
).once
318318

319319
Doorkeeper.configure do

0 commit comments

Comments
 (0)