Commit 296e0e77 authored by Valery Sizov's avatar Valery Sizov

fix specs

parent c3254358
...@@ -26,7 +26,7 @@ class Groups::HooksController < Groups::ApplicationController ...@@ -26,7 +26,7 @@ class Groups::HooksController < Groups::ApplicationController
def test def test
if @group.first_non_empty_project if @group.first_non_empty_project
status = TestHookService.new.execute(hook, current_user) status, message = TestHookService.new.execute(hook, current_user)
if status if status
flash[:notice] = 'Hook successfully executed.' flash[:notice] = 'Hook successfully executed.'
......
...@@ -152,7 +152,7 @@ describe MergeRequest do ...@@ -152,7 +152,7 @@ describe MergeRequest do
it 'returns sorted JiraIssues' do it 'returns sorted JiraIssues' do
allow(subject.project).to receive_messages(default_branch: subject.target_branch) allow(subject.project).to receive_messages(default_branch: subject.target_branch)
expect(subject.closes_issues).to eq([issue1, issue0]) expect(subject.closes_issues).to eq([issue0, issue1])
end end
end end
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