From 8f1e96c89bd3ffe6ae47c275df2d1e919d42c39a Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Tue, 25 Dec 2018 18:48:26 +0900 Subject: Add spec for Release API Add spec for all release API - GET, POST, PUT, DELETE. Also, fixes some minior bugs. --- spec/factories/releases.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/factories/releases.rb') 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 -- cgit v1.2.1