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