Add a :repository trait to the :empty_project factory

Right now this is a no-op. We're going to add it as a trait argument to
all existing usages of the `:project` factory, so that later we can flip
`:empty_project` to just be `:project`, forcing developers to opt-in to
the slower option when their tests truly require it.
This commit is contained in:
Robert Speicher 2017-01-16 23:06:18 -05:00
parent 65046d9a5e
commit a8b4ab9da4

View file

@ -32,6 +32,10 @@ FactoryGirl.define do
request_access_enabled true
end
trait :repository do
# no-op... for now!
end
trait :empty_repo do
after(:create) do |project|
project.create_repository