diff options
author | James Lopez <james@jameslopez.es> | 2017-05-05 17:16:02 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-05-05 17:16:02 +0300 |
commit | ce418036c763219df8239632f71ef0e9782be7ea (patch) | |
tree | ca19e128f5e5e0025424fd77db178a3837075b68 /spec/services/projects | |
parent | 606584c115d5f7a22f3b5c7e0ac6803b96fe999e (diff) |
add callbacks in bulk
Diffstat (limited to 'spec/services/projects')
-rw-r--r-- | spec/services/projects/propagate_service_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/services/projects/propagate_service_spec.rb b/spec/services/projects/propagate_service_spec.rb index ac25c8b3d56..b8aa4de5bd1 100644 --- a/spec/services/projects/propagate_service_spec.rb +++ b/spec/services/projects/propagate_service_spec.rb @@ -78,5 +78,23 @@ describe Projects::PropagateService, services: true do to change { Service.count }.by(project_total + 1) end end + + describe 'external tracker' do + it 'updates the project external tracker' do + service_template.update(category: 'issue_tracker', default: false) + + expect { described_class.propagate(service_template) }. + to change { project.reload.has_external_issue_tracker }.to(true) + end + end + + describe 'external wiki' do + it 'updates the project external tracker' do + service_template.update(type: 'ExternalWikiService') + + expect { described_class.propagate(service_template) }. + to change { project.reload.has_external_wiki }.to(true) + end + end end end |