diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-01-26 15:59:40 -0800 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-01-26 15:59:40 -0800 |
commit | 4641514cbfdcc56a0cbc5ad3444a92284df9a665 (patch) | |
tree | 654a3a188df70705f664e49608d36bef8940cb14 /spec/factories | |
parent | 65e700472b471242475eb9d9e3a340c6ce24615a (diff) | |
download | gitlab-ce-4641514cbfdcc56a0cbc5ad3444a92284df9a665.tar.gz |
Update rspec tests to the new external issue logic.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/projects.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index 1738b20fab2..499139089d9 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -76,7 +76,19 @@ FactoryGirl.define do end factory :redmine_project, parent: :project do - issues_tracker { "redmine" } - issues_tracker_id { "project_name_in_redmine" } + after :create do |project| + project.create_redmine_service( + active: true, + properties: { + project_url: 'http://redmine/projects/project_name_in_redmine', + issues_url: "http://redmine/#{project.id}/project_name_in_redmine/:id", + new_issue_url: 'http://redmine/projects/project_name_in_redmine/issues/new' + } + ) + end + after :create do |project| + project.issues_tracker = 'redmine' + project.issues_tracker_id = 'project_name_in_redmine' + end end end |