Fix specs

Spinach was right, I was a fool..
This commit is contained in:
Zeger-Jan van de Weg 2016-03-17 11:48:07 +01:00
parent 481e73fb76
commit 9337406671
2 changed files with 2 additions and 1 deletions

View File

@ -98,6 +98,7 @@ class Issue < ActiveRecord::Base
end
def related_branches
return [] if self.project.empty_repo?
self.project.repository.branch_names.select do |branch|
branch =~ /\A#{iid}-(?!\d+-stable)/i
end

View File

@ -24,7 +24,7 @@ feature 'Start new branch from an issue', feature: true do
end
let(:referenced_mr) do
create(:merge_request, :simple, source_project: project, target_project: project,
description: "Fixes ##{issue.iid}")
description: "Fixes ##{issue.iid}")
end
before do