debian-mirror-gitlab/spec/factories/environments.rb
2016-09-13 17:45:13 +05:30

8 lines
234 B
Ruby

FactoryGirl.define do
factory :environment, class: Environment do
sequence(:name) { |n| "environment#{n}" }
project factory: :empty_project
sequence(:external_url) { |n| "https://env#{n}.example.gitlab.com" }
end
end