summaryrefslogtreecommitdiff
path: root/spec/factories/oauth_access_grants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/oauth_access_grants.rb')
-rw-r--r--spec/factories/oauth_access_grants.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/factories/oauth_access_grants.rb b/spec/factories/oauth_access_grants.rb
new file mode 100644
index 00000000000..543b3e99274
--- /dev/null
+++ b/spec/factories/oauth_access_grants.rb
@@ -0,0 +1,11 @@
+FactoryGirl.define do
+ factory :oauth_access_grant do
+ resource_owner_id { create(:user).id }
+ application
+ token { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
+ expires_in 2.hours
+
+ redirect_uri { application.redirect_uri }
+ scopes { application.scopes }
+ end
+end