From 6a98fb03e708070641f9fce0eaad761e859a5099 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Thu, 14 Jan 2016 12:04:44 +0100 Subject: [PATCH] Remove hard-coded id from builds factory --- spec/factories/ci/builds.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 636cdbba1b8..d2db77f6286 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -61,8 +61,7 @@ FactoryGirl.define do end factory :ci_build_with_trace do - id 999 - after(:build) do |build, evaluator| + after(:create) do |build, evaluator| build.trace = 'BUILD TRACE' end end