Commit a8e8b4fc authored by andysoiron's avatar andysoiron

Remove unnecessary Jira template test

When a template is applied to a project
it copies all attributes to a new service
and sets template to `false` and project_id
to the ID of the project. After the service was
copied it is not different from any other
project service and behaves the same.

A service should not be a template and
attached to a project at the same time

To simulate a template applied to a project
we would need to use Projects::CreateService.
But this test would not belong to
services_controller_spec.
parent 3129fb22
......@@ -153,16 +153,6 @@ describe Projects::ServicesController do
expect(flash[:notice]).to eq 'Jira settings saved, but not activated.'
end
end
context 'when activating Jira service from a template' do
let(:service) do
create(:jira_service, project: project, template: true)
end
it 'activate Jira service from template' do
expect(flash[:notice]).to eq 'Jira activated.'
end
end
end
describe 'as JSON' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment