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_access_tokens.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_access_tokens.rb')
-rw-r--r-- | spec/factories/oauth_access_tokens.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/factories/oauth_access_tokens.rb b/spec/factories/oauth_access_tokens.rb new file mode 100644 index 00000000000..4bbc7d3a554 --- /dev/null +++ b/spec/factories/oauth_access_tokens.rb @@ -0,0 +1,23 @@ +# == Schema Information +# +# Table name: oauth_access_tokens +# +# id :integer not null, primary key +# resource_owner_id :integer +# application_id :integer +# token :string not null +# refresh_token :string +# expires_in :integer +# revoked_at :datetime +# created_at :datetime not null +# scopes :string +# + +FactoryGirl.define do + factory :oauth_access_token do + resource_owner + application + token '123456' + created_at :datetime + end +end |