From ce7c0ac3dbdc3f2f2f34b39bf5ef3755e79e9d42 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Thu, 31 Aug 2017 21:13:40 +0900 Subject: Add validation for protected attributes --- spec/factories/ci/builds.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spec/factories/ci/builds.rb') 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 -- cgit v1.2.3