Commit 3ec01e57 authored by tiagonbotelho's avatar tiagonbotelho

implements branches filter functionality and tests accordingly

refactors find_similar_branches method to a one liner
parent 766f9cf2
...@@ -127,7 +127,6 @@ class Repository ...@@ -127,7 +127,6 @@ class Repository
def find_similar_branches(search) def find_similar_branches(search)
raw_repository.branches.select { |branch| branch.name.include?(search) } raw_repository.branches.select { |branch| branch.name.include?(search) }
end end
def find_branch(name) def find_branch(name)
......
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