Fix specs for Ruby != 1.9
This commit is contained in:
parent
2f59a10558
commit
a326c35875
@ -79,7 +79,7 @@ module Guard
|
|||||||
when String, Symbol
|
when String, Symbol
|
||||||
@groups.find { |group| group.name == filter.to_sym }
|
@groups.find { |group| group.name == filter.to_sym }
|
||||||
when Regexp
|
when Regexp
|
||||||
@groups.find_all { |group| group.name =~ filter }
|
@groups.find_all { |group| group.name.to_s =~ filter }
|
||||||
else
|
else
|
||||||
@groups
|
@groups
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user