Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-04-13 08:39:18 +0300
committerStan Hu <stanhu@gmail.com>2016-04-14 17:24:58 +0300
commitc7e384aab23301ad0ee3559252324fa957d15db3 (patch)
treed78a59ec9a9da680dcc93508c92a09885069dd7c /spec/factories/oauth_applications.rb
parent0c082d5e3a34d787f8b2fea0c22fa4256cf82be3 (diff)
Add spec for deletion of authorized OAuth2 application
Closes #14370 Move gon function into its own helper
Diffstat (limited to 'spec/factories/oauth_applications.rb')
-rw-r--r--spec/factories/oauth_applications.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/oauth_applications.rb b/spec/factories/oauth_applications.rb
new file mode 100644
index 00000000000..d116a573830
--- /dev/null
+++ b/spec/factories/oauth_applications.rb
@@ -0,0 +1,9 @@
+FactoryGirl.define do
+ factory :oauth_application, class: 'Doorkeeper::Application', aliases: [:application] do
+ name { FFaker::Name.name }
+ uid { FFaker::Name.name }
+ redirect_uri { FFaker::Internet.uri('http') }
+ owner
+ owner_type 'User'
+ end
+end