Fix specs for Ruby != 1.9

This commit is contained in:
Rémy Coutable 2011-09-23 00:53:13 +02:00
parent 2f59a10558
commit a326c35875

View File

@ -79,7 +79,7 @@ module Guard
when String, Symbol
@groups.find { |group| group.name == filter.to_sym }
when Regexp
@groups.find_all { |group| group.name =~ filter }
@groups.find_all { |group| group.name.to_s =~ filter }
else
@groups
end