We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b39c2 commit 23c44ceCopy full SHA for 23c44ce
1 file changed
spec/lib/config_spec.rb
@@ -533,6 +533,19 @@ class ApplicationWithOwner < ActiveRecord::Base
533
end
534
expect(config.custom_access_token_attributes).to eq([:tenant_name])
535
536
+
537
+ it "removes unrecognized attributes" do
538
+ # Once for access_grant_model, and again for access_token_model.
539
+ expect(Rails.logger).to receive(:warn).with(/custom attribute will be ignored/)
540
541
542
+ Doorkeeper.configure do
543
+ orm DOORKEEPER_ORM
544
+ custom_access_token_attributes [:tenant_name, :unrecognized_attribute]
545
+ end
546
547
+ expect(config.custom_access_token_attributes).to eq([:tenant_name])
548
549
550
551
describe "application_secret_generator" do
0 commit comments