Commit 34166559265d9c393a2454d82139cf94cc31970b

Authored by Heitor
1 parent f9fabd2e

Removed project id from repository factory and created a trait for it

Signed-off-by: Pedro Scocco <pedroscocco@gmail.com>
Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
spec/factories/repositories.rb
... ... @@ -23,7 +23,6 @@ FactoryGirl.define do
23 23 scm_type "GIT"
24 24 address "https://github.com/rafamanzo/runge-kutta-vtk.git"
25 25 kalibro_configuration_id 1
26   - project_id 1
27 26 send_email "test@test.com"
28 27 end
29 28  
... ... @@ -36,11 +35,14 @@ FactoryGirl.define do
36 35 scm_type "GIT"
37 36 address "https://github.com/mezuro/kalibro_processor.git"
38 37 kalibro_configuration_id 1
39   - project_id 1
40 38 send_email "test@test.com"
41 39 end
42 40  
43 41 factory :another_repository, parent: :repository do
44 42 id 2
45 43 end
  44 +
  45 + trait :with_project_id do
  46 + project_id 1
  47 + end
46 48 end
... ...