diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-31 21:13:40 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-03 23:49:11 +0900 |
commit | ce7c0ac3dbdc3f2f2f34b39bf5ef3755e79e9d42 (patch) | |
tree | 2f86ef281b73d2c1ba9f372f759a3bbfd6c9882c /spec/factories/ci/builds.rb | |
parent | f3d3cecf5a7691c5df48fc6b0f3d206cd57203db (diff) | |
download | gitlab-ce-ce7c0ac3dbdc3f2f2f34b39bf5ef3755e79e9d42.tar.gz |
Add validation for protected attributes
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r-- | spec/factories/ci/builds.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index f8922275860..bdc3e8acc07 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -12,6 +12,7 @@ FactoryGirl.define do started_at 'Di 29. Okt 09:51:28 CET 2013' finished_at 'Di 29. Okt 09:53:28 CET 2013' commands 'ls -a' + protected false options do { @@ -227,11 +228,11 @@ FactoryGirl.define do self.when 'manual' end - trait(:protected) do + trait :protected do protected true end - trait(:unprotected) do + trait :unprotected do protected false end end |