diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-12-25 18:48:26 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-12-31 14:35:57 +0900 |
commit | 8f1e96c89bd3ffe6ae47c275df2d1e919d42c39a (patch) | |
tree | 783bdd82084985736a8a07ab13d0e9f335f2fcd0 /spec/factories/releases.rb | |
parent | dc8a8c7d998e2c1f78fcf60f8dc45b572f62abe8 (diff) | |
download | gitlab-ce-8f1e96c89bd3ffe6ae47c275df2d1e919d42c39a.tar.gz |
Add spec for Release API
Add spec for all release API - GET, POST, PUT, DELETE.
Also, fixes some minior bugs.
Diffstat (limited to 'spec/factories/releases.rb')
-rw-r--r-- | spec/factories/releases.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/releases.rb b/spec/factories/releases.rb index eaf3999e9ff..cab6b4a811f 100644 --- a/spec/factories/releases.rb +++ b/spec/factories/releases.rb @@ -1,9 +1,15 @@ FactoryBot.define do factory :release do tag "v1.1.0" + sha 'b83d6e391c22777fca1ed3012fce84f633d7fed0' name { tag } description "Awesome release" project author + + trait :legacy do + sha nil + author nil + end end end |