Skip to content
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

doorkeeper should respect ActiveRecord::Base.pluralize_table_names #1460

Closed
mavenraven opened this issue Dec 11, 2020 · 1 comment · Fixed by #1477
Closed

doorkeeper should respect ActiveRecord::Base.pluralize_table_names #1460

mavenraven opened this issue Dec 11, 2020 · 1 comment · Fixed by #1477
Milestone

Comments

@mavenraven
Copy link

Hi there! Thank you for making doorkeeper! Currently, even if you have ActiveRecord::Base.pluralize_table_names = false in your app, doorkeeper does not respect this due to https://github.com/doorkeeper-gem/doorkeeper/blob/master/lib/doorkeeper/orm/active_record/mixins/application.rb#L8. I would send a PR myself, but I get these test failures:

�[32m[Coveralls] Set up the SimpleCov formatter.�[0m
�[32m[Coveralls] Using SimpleCov's 'rails' settings.�[0m
warning: parser/current is loading parser/ruby26, which recognizes
warning: 2.6.6-compliant syntax, but you are running 2.6.5.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
====> Doorkeeper ORM: 'active_record'
====> Doorkeeper version: 5.5.0.rc1
====> Rails version: 6.1.0
====> Ruby version: 2.6.5 on x86_64-linux-musl

Randomized with seed 29786
�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[31mF�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[31mF�[0m�[31mF�[0m�[31mF�[0m�[31mF�[0m�[31mF�[0m�[31mF�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[31mF�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[31mF�[0m�[32m.�[0m�[31mF�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[31mF�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m

Failures:

  1) Token endpoint respond with correct headers
     �[31mFailure/Error: expect(headers[header]).to eq(value)�[0m
     �[31m�[0m
     �[31m  expected: "private, no-store"�[0m
     �[31m       got: "no-store"�[0m
     �[31m�[0m
     �[31m  (compared using ==)�[0m
     �[36m# ./spec/support/helpers/request_spec_helper.rb:45:in `should_have_header'�[0m
     �[36m# ./spec/requests/endpoints/token_spec.rb:21:in `block (2 levels) in <top (required)>'�[0m

  2) Doorkeeper::Application#as_json correctly works with #to_json
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:83:in `as_json'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:35:in `encode'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:22:in `encode'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/object/json.rb:42:in `to_json'�[0m
     �[36m# ./spec/models/doorkeeper/application_spec.rb:439:in `block (3 levels) in <top (required)>'�[0m

  3) Doorkeeper::Application#as_json when called with authorized resource owner includes all the attributes
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:78:in `as_json'�[0m
     �[36m# ./spec/models/doorkeeper/application_spec.rb:487:in `block (4 levels) in <top (required)>'�[0m

  4) Doorkeeper::Application#as_json when called with authorized resource owner doesn't include unsafe attributes if current owner isn't the same as owner
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:83:in `as_json'�[0m
     �[36m# ./spec/models/doorkeeper/application_spec.rb:496:in `block (4 levels) in <top (required)>'�[0m

  5) Doorkeeper::Application#as_json when called without authorized resource owner respects custom options
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:83:in `as_json'�[0m
     �[36m# ./spec/models/doorkeeper/application_spec.rb:465:in `block (4 levels) in <top (required)>'�[0m

  6) Doorkeeper::Application#as_json when called without authorized resource owner includes application UID if it's public
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:83:in `as_json'�[0m
     �[36m# ./spec/models/doorkeeper/application_spec.rb:456:in `block (4 levels) in <top (required)>'�[0m

  7) Doorkeeper::Application#as_json when called without authorized resource owner includes minimal set of attributes
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:83:in `as_json'�[0m
     �[36m# ./spec/models/doorkeeper/application_spec.rb:446:in `block (4 levels) in <top (required)>'�[0m

  8) Doorkeeper::ApplicationsController when admin is authenticated when application secrets are hashed returns the application details in a json response
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:78:in `as_json'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:35:in `encode'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:22:in `encode'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/object/json.rb:42:in `to_json'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:157:in `block in <module:Renderers>'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:150:in `block in _render_to_body_with_renderer'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:146:in `_render_to_body_with_renderer'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:142:in `render_to_body'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/rendering.rb:25:in `render'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:36:in `render'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/benchmark.rb:14:in `ms'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block in render'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:45:in `render'�[0m
     �[36m# ./app/controllers/doorkeeper/applications_controller.rb:39:in `block (2 levels) in create'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/mime_responds.rb:214:in `respond_to'�[0m
     �[36m# ./app/controllers/doorkeeper/applications_controller.rb:37:in `create'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:228:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:30:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:106:in `run_callbacks'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:41:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rescue.rb:22:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `block in instrument'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `instrument'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:33:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:27:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:165:in `process'�[0m
     �[36m# /usr/local/bundle/gems/actionview-6.1.0/lib/action_view/rendering.rb:39:in `process'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal.rb:190:in `dispatch'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:577:in `process_controller_response'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:496:in `process'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:403:in `post'�[0m
     �[36m# ./spec/controllers/applications_controller_spec.rb:192:in `block (5 levels) in <top (required)>'�[0m
     �[36m# ./spec/controllers/applications_controller_spec.rb:198:in `block (4 levels) in <top (required)>'�[0m

  9) Doorkeeper::ApplicationsController when JSON API used returns application info
     �[31mFailure/Error:�[0m
     �[31m  def serializable_attributes�[0m
     �[31m    attributes = %w[id name created_at]�[0m
     �[31m    attributes << "uid" unless confidential?�[0m
     �[31m    attributes�[0m
     �[31m  end�[0m
     �[31m�[0m
     �[31mArgumentError:�[0m
     �[31m  wrong number of arguments (given 1, expected 0)�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
     �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
     �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:78:in `as_json'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:35:in `encode'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:22:in `encode'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/object/json.rb:42:in `to_json'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:157:in `block in <module:Renderers>'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:150:in `block in _render_to_body_with_renderer'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:146:in `_render_to_body_with_renderer'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:142:in `render_to_body'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/rendering.rb:25:in `render'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:36:in `render'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/benchmark.rb:14:in `ms'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block in render'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:45:in `render'�[0m
     �[36m# ./app/controllers/doorkeeper/applications_controller.rb:22:in `block (2 levels) in show'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/mime_responds.rb:214:in `respond_to'�[0m
     �[36m# ./app/controllers/doorkeeper/applications_controller.rb:20:in `show'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:228:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:30:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:106:in `run_callbacks'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:41:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rescue.rb:22:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `block in instrument'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'�[0m
     �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `instrument'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:33:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:27:in `process_action'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:165:in `process'�[0m
     �[36m# /usr/local/bundle/gems/actionview-6.1.0/lib/action_view/rendering.rb:39:in `process'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal.rb:190:in `dispatch'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:577:in `process_controller_response'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:496:in `process'�[0m
     �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:395:in `get'�[0m
     �[36m# ./spec/controllers/applications_controller_spec.rb:68:in `block (3 levels) in <top (required)>'�[0m

  10) Doorkeeper::ApplicationsController when JSON API used updates application
      �[31mFailure/Error:�[0m
      �[31m  def serializable_attributes�[0m
      �[31m    attributes = %w[id name created_at]�[0m
      �[31m    attributes << "uid" unless confidential?�[0m
      �[31m    attributes�[0m
      �[31m  end�[0m
      �[31m�[0m
      �[31mArgumentError:�[0m
      �[31m  wrong number of arguments (given 1, expected 0)�[0m
      �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
      �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
      �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
      �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
      �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:78:in `as_json'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:35:in `encode'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:22:in `encode'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/object/json.rb:42:in `to_json'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:157:in `block in <module:Renderers>'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:150:in `block in _render_to_body_with_renderer'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:146:in `_render_to_body_with_renderer'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:142:in `render_to_body'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/rendering.rb:25:in `render'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:36:in `render'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/benchmark.rb:14:in `ms'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block in render'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'�[0m
      �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:45:in `render'�[0m
      �[36m# ./app/controllers/doorkeeper/applications_controller.rb:61:in `block (2 levels) in update'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/mime_responds.rb:214:in `respond_to'�[0m
      �[36m# ./app/controllers/doorkeeper/applications_controller.rb:59:in `update'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:228:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:30:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:106:in `run_callbacks'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:41:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rescue.rb:22:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `block in instrument'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `instrument'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:33:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:27:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:165:in `process'�[0m
      �[36m# /usr/local/bundle/gems/actionview-6.1.0/lib/action_view/rendering.rb:39:in `process'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal.rb:190:in `dispatch'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:577:in `process_controller_response'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:496:in `process'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:415:in `put'�[0m
      �[36m# ./spec/controllers/applications_controller_spec.rb:78:in `block (3 levels) in <top (required)>'�[0m

  11) Doorkeeper::ApplicationsController when JSON API used creates an application
      �[31mFailure/Error:�[0m
      �[31m  def serializable_attributes�[0m
      �[31m    attributes = %w[id name created_at]�[0m
      �[31m    attributes << "uid" unless confidential?�[0m
      �[31m    attributes�[0m
      �[31m  end�[0m
      �[31m�[0m
      �[31mArgumentError:�[0m
      �[31m  wrong number of arguments (given 1, expected 0)�[0m
      �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:153:in `serializable_attributes'�[0m
      �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serialization.rb:136:in `serializable_hash'�[0m
      �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/serialization.rb:21:in `serializable_hash'�[0m
      �[36m# /usr/local/bundle/gems/activemodel-6.1.0/lib/active_model/serializers/json.rb:103:in `as_json'�[0m
      �[36m# ./lib/doorkeeper/orm/active_record/mixins/application.rb:78:in `as_json'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:35:in `encode'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/json/encoding.rb:22:in `encode'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/object/json.rb:42:in `to_json'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:157:in `block in <module:Renderers>'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:150:in `block in _render_to_body_with_renderer'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:146:in `_render_to_body_with_renderer'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/renderers.rb:142:in `render_to_body'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/rendering.rb:25:in `render'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:36:in `render'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/core_ext/benchmark.rb:14:in `ms'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:46:in `block in render'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'�[0m
      �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:45:in `render'�[0m
      �[36m# ./app/controllers/doorkeeper/applications_controller.rb:39:in `block (2 levels) in create'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/mime_responds.rb:214:in `respond_to'�[0m
      �[36m# ./app/controllers/doorkeeper/applications_controller.rb:37:in `create'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:228:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rendering.rb:30:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/callbacks.rb:106:in `run_callbacks'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/callbacks.rb:41:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/rescue.rb:22:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `block in instrument'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'�[0m
      �[36m# /usr/local/bundle/gems/activesupport-6.1.0/lib/active_support/notifications.rb:203:in `instrument'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/instrumentation.rb:33:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/activerecord-6.1.0/lib/active_record/railties/controller_runtime.rb:27:in `process_action'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/abstract_controller/base.rb:165:in `process'�[0m
      �[36m# /usr/local/bundle/gems/actionview-6.1.0/lib/action_view/rendering.rb:39:in `process'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/metal.rb:190:in `dispatch'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:577:in `process_controller_response'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:496:in `process'�[0m
      �[36m# /usr/local/bundle/gems/actionpack-6.1.0/lib/action_controller/test_case.rb:403:in `post'�[0m
      �[36m# ./spec/controllers/applications_controller_spec.rb:16:in `block (4 levels) in <top (required)>'�[0m
      �[36m# ./spec/controllers/applications_controller_spec.rb:22:in `block (3 levels) in <top (required)>'�[0m

Finished in 7.51 seconds (files took 2.7 seconds to load)
�[31m1121 examples, 11 failures�[0m

Failed examples:

�[31mrspec ./spec/requests/endpoints/token_spec.rb:15�[0m �[36m# Token endpoint respond with correct headers�[0m
�[31mrspec ./spec/models/doorkeeper/application_spec.rb:437�[0m �[36m# Doorkeeper::Application#as_json correctly works with #to_json�[0m
�[31mrspec ./spec/models/doorkeeper/application_spec.rb:486�[0m �[36m# Doorkeeper::Application#as_json when called with authorized resource owner includes all the attributes�[0m
�[31mrspec ./spec/models/doorkeeper/application_spec.rb:495�[0m �[36m# Doorkeeper::Application#as_json when called with authorized resource owner doesn't include unsafe attributes if current owner isn't the same as owner�[0m
�[31mrspec ./spec/models/doorkeeper/application_spec.rb:464�[0m �[36m# Doorkeeper::Application#as_json when called without authorized resource owner respects custom options�[0m
�[31mrspec ./spec/models/doorkeeper/application_spec.rb:453�[0m �[36m# Doorkeeper::Application#as_json when called without authorized resource owner includes application UID if it's public�[0m
�[31mrspec ./spec/models/doorkeeper/application_spec.rb:445�[0m �[36m# Doorkeeper::Application#as_json when called without authorized resource owner includes minimal set of attributes�[0m
�[31mrspec ./spec/controllers/applications_controller_spec.rb:190�[0m �[36m# Doorkeeper::ApplicationsController when admin is authenticated when application secrets are hashed returns the application details in a json response�[0m
�[31mrspec ./spec/controllers/applications_controller_spec.rb:65�[0m �[36m# Doorkeeper::ApplicationsController when JSON API used returns application info�[0m
�[31mrspec ./spec/controllers/applications_controller_spec.rb:75�[0m �[36m# Doorkeeper::ApplicationsController when JSON API used updates application�[0m
�[31mrspec ./spec/controllers/applications_controller_spec.rb:14�[0m �[36m# Doorkeeper::ApplicationsController when JSON API used creates an application�[0m

Randomized with seed 29786

�[33m[Coveralls] Outside the CI environment, not sending data.�[0m

Thanks for any help!

@nbulaj
Copy link
Member

nbulaj commented Jan 15, 2021

Hi @mavenraven . Yeah, this AR feature is missed.
Please update doorkeeper fork if you have such - I fixed this issues in latest changes (Rails 6.x changed JSON serialization module and broke our public API).

Please propose a PR or let me know and I'll fix it myself 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants