diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-27 23:41:19 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 18:58:57 +0300 |
commit | a77aee9369596729c5aab2188fe114000872a05c (patch) | |
tree | 90bf50df0aff8ff3489e0cab72229134dae9dc36 /spec/factories | |
parent | 6e8d06a5949a32b52850ef6aecdd2231aaced01b (diff) |
Add service to create a new board for a project
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/projects.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index b682ced75ac..f82d68a1816 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -83,4 +83,10 @@ FactoryGirl.define do ) end end + + factory :project_with_board, parent: :empty_project do + after(:create) do |project| + project.create_board + end + end end |