debian-mirror-gitlab/spec/factories/environments.rb

9 lines
234 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :environment, class: Environment do
sequence(:name) { |n| "environment#{n}" }
project factory: :empty_project
2016-09-13 17:45:13 +05:30
sequence(:external_url) { |n| "https://env#{n}.example.gitlab.com" }
end
end