diff options
author | James Lopez <james@jameslopez.es> | 2017-05-04 19:11:28 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-05-04 19:11:28 +0300 |
commit | cf002738e766f977bdb0e857759f548a5c65c9bd (patch) | |
tree | 4162281ab28ac4eaf1f711e2f20c46125807397a /spec/services/projects | |
parent | 78d059141b5f3345d797992e03680654ce762c76 (diff) |
refactor a few things based on feedback
Diffstat (limited to 'spec/services/projects')
-rw-r--r-- | spec/services/projects/propagate_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/projects/propagate_service_spec.rb b/spec/services/projects/propagate_service_spec.rb index 409c14655cd..d4ec7c0b357 100644 --- a/spec/services/projects/propagate_service_spec.rb +++ b/spec/services/projects/propagate_service_spec.rb @@ -18,7 +18,7 @@ describe Projects::PropagateService, services: true do let!(:project) { create(:empty_project) } it 'creates services for projects' do - expect { described_class.propagate!(service_template) }. + expect { described_class.propagate(service_template) }. to change { Service.count }.by(1) end @@ -36,7 +36,7 @@ describe Projects::PropagateService, services: true do Service.build_from_template(project.id, other_service).save! - expect { described_class.propagate!(service_template) }. + expect { described_class.propagate(service_template) }. to change { Service.count }.by(1) end @@ -55,12 +55,12 @@ describe Projects::PropagateService, services: true do Service.build_from_template(project.id, service_template).save! Service.build_from_template(project.id, other_service).save! - expect { described_class.propagate!(service_template) }. + expect { described_class.propagate(service_template) }. not_to change { Service.count } end it 'creates the service containing the template attributes' do - described_class.propagate!(service_template) + described_class.propagate(service_template) service = Service.find_by(type: service_template.type, template: false) |