* Update specs for doorkeeper test * Add bang * Create #authenticate * Create /api/articles/ endpoint * Update specs * Update me.json.jbuilder * Fix typo and spacing * Support pagination for #me * Update #authenticate! to support cookies * Make per_page a param * Disable method-complexity check * Enable refresh_token * Create /api/users/me endpoint
8 lines
308 B
Ruby
8 lines
308 B
Ruby
FactoryBot.define do
|
|
factory :application, class: "Doorkeeper::Application" do
|
|
sequence(:name) { |n| "Project #{n}" }
|
|
sequence(:redirect_uri) { |n| "https://example#{n}.com" }
|
|
secret { SecureRandom.hex(8) }
|
|
uid { SecureRandom.hex(8) }
|
|
end
|
|
end
|