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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-27 23:41:19 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 18:58:57 +0300
commita77aee9369596729c5aab2188fe114000872a05c (patch)
tree90bf50df0aff8ff3489e0cab72229134dae9dc36 /spec/factories
parent6e8d06a5949a32b52850ef6aecdd2231aaced01b (diff)
Add service to create a new board for a project
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/projects.rb6
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