Commit 93374066 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Fix specs

Spinach was right, I was a fool..
parent 481e73fb
......@@ -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
......
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