Commit 9fb308d4 authored by Valery Sizov's avatar Valery Sizov

fix specs

parent 296e0e77
......@@ -31,8 +31,7 @@ class Groups::HooksController < Groups::ApplicationController
if status
flash[:notice] = 'Hook successfully executed.'
else
flash[:alert] = 'Hook execution failed. '\
'Ensure hook URL is correct and service is up.'
flash[:alert] = "Hook execution failed: #{message}"
end
else
flash[:alert] = 'Hook execution failed. Ensure the group has a project with commits.'
......
......@@ -65,8 +65,6 @@ class Spinach::Features::GroupHooks < Spinach::FeatureSteps
step 'I should see hook service down error message' do
expect(page).to have_selector '.flash-alert',
text: 'Hook execution failed. '\
'Ensure hook URL is correct and '\
'service is up.'
text: 'Hook execution failed: Exception from'
end
end
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