Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-31 15:13:40 +0300
committerShinya Maeda <shinya@gitlab.com>2017-09-03 17:49:11 +0300
commitce7c0ac3dbdc3f2f2f34b39bf5ef3755e79e9d42 (patch)
tree2f86ef281b73d2c1ba9f372f759a3bbfd6c9882c /spec/factories/ci/builds.rb
parentf3d3cecf5a7691c5df48fc6b0f3d206cd57203db (diff)
Add validation for protected attributes
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r--spec/factories/ci/builds.rb5
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