7ecffe2987
Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
16 lines
316 B
Ruby
16 lines
316 B
Ruby
FactoryBot.define do
|
|
factory :release do
|
|
tag "v1.1.0"
|
|
sha 'b83d6e391c22777fca1ed3012fce84f633d7fed0'
|
|
name { tag }
|
|
description "Awesome release"
|
|
project
|
|
author
|
|
released_at { Time.zone.parse('2018-10-20T18:00:00Z') }
|
|
|
|
trait :legacy do
|
|
sha nil
|
|
author nil
|
|
end
|
|
end
|
|
end
|