From 72b59d6e3ba1e19045071ada494cc8e7c71a32c9 Mon Sep 17 00:00:00 2001
From: Daniel Juarez <daniel.juarez.gonzalez@cern.ch>
Date: Tue, 5 Feb 2019 12:30:06 +0000
Subject: Fix comparing equality between `ActionController::Parameters` and a
 `Hash`....

---
 spec/controllers/projects/services_controller_spec.rb | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'spec')

diff --git a/spec/controllers/projects/services_controller_spec.rb b/spec/controllers/projects/services_controller_spec.rb
index 4a5d2bdecb7..601a292bf54 100644
--- a/spec/controllers/projects/services_controller_spec.rb
+++ b/spec/controllers/projects/services_controller_spec.rb
@@ -152,6 +152,16 @@ describe Projects::ServicesController do
         expect(service.namespace).not_to eq('updated_namespace')
       end
     end
+
+    context 'when activating JIRA service from a template' do
+      let(:template_service) { create(:jira_service, project: project, template: true) }
+
+      it 'activate JIRA service from template' do
+        put :update, params: { namespace_id: project.namespace, project_id: project, id: service.to_param, service: { active: true } }
+
+        expect(flash[:notice]).to eq 'JIRA activated.'
+      end
+    end
   end
 
   describe "GET #edit" do
-- 
cgit v1.2.1