Commit 34166559265d9c393a2454d82139cf94cc31970b
1 parent
f9fabd2e
Exists in
colab
and in
4 other branches
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,7 +23,6 @@ FactoryGirl.define do | ||
23 | scm_type "GIT" | 23 | scm_type "GIT" |
24 | address "https://github.com/rafamanzo/runge-kutta-vtk.git" | 24 | address "https://github.com/rafamanzo/runge-kutta-vtk.git" |
25 | kalibro_configuration_id 1 | 25 | kalibro_configuration_id 1 |
26 | - project_id 1 | ||
27 | send_email "test@test.com" | 26 | send_email "test@test.com" |
28 | end | 27 | end |
29 | 28 | ||
@@ -36,11 +35,14 @@ FactoryGirl.define do | @@ -36,11 +35,14 @@ FactoryGirl.define do | ||
36 | scm_type "GIT" | 35 | scm_type "GIT" |
37 | address "https://github.com/mezuro/kalibro_processor.git" | 36 | address "https://github.com/mezuro/kalibro_processor.git" |
38 | kalibro_configuration_id 1 | 37 | kalibro_configuration_id 1 |
39 | - project_id 1 | ||
40 | send_email "test@test.com" | 38 | send_email "test@test.com" |
41 | end | 39 | end |
42 | 40 | ||
43 | factory :another_repository, parent: :repository do | 41 | factory :another_repository, parent: :repository do |
44 | id 2 | 42 | id 2 |
45 | end | 43 | end |
44 | + | ||
45 | + trait :with_project_id do | ||
46 | + project_id 1 | ||
47 | + end | ||
46 | end | 48 | end |