diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-09-06 05:24:31 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-09-28 15:20:11 +0300 |
commit | 38607b48b689b39721ff0cf7355ba2a176f4bf5e (patch) | |
tree | 1a20b89406be995c97353fa4bd0caca9bb3aa907 /spec/factories/projects.rb | |
parent | e0e49f2f7120fee6ee34236ed6463e4c130f2ad1 (diff) |
[Backported from EE] Readonly flag for Projects
This is used in EE for the storage migration, and we want to use this
in CE as well to be able to migrate projects to hashed_storage.
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r-- | spec/factories/projects.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index 7493b0a8b35..4842efc86a1 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -143,6 +143,10 @@ FactoryGirl.define do end end + trait :read_only_repository do + repository_read_only true + end + trait :broken_repo do after(:create) do |project| raise "Failed to create repository!" unless project.create_repository |