diff options
author | Stan Hu <stanhu@gmail.com> | 2016-04-12 22:39:18 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-04-14 07:24:58 -0700 |
commit | c7e384aab23301ad0ee3559252324fa957d15db3 (patch) | |
tree | d78a59ec9a9da680dcc93508c92a09885069dd7c /spec/factories/oauth_applications.rb | |
parent | 0c082d5e3a34d787f8b2fea0c22fa4256cf82be3 (diff) | |
download | gitlab-ce-c7e384aab23301ad0ee3559252324fa957d15db3.tar.gz |
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.rb | 9 |
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 |