From a326c3587576e0c6e5d1600218a99a9ddcc421f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Coutable?= Date: Fri, 23 Sep 2011 00:53:13 +0200 Subject: [PATCH] Fix specs for Ruby != 1.9 --- lib/guard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard.rb b/lib/guard.rb index 311cf32..4a324e7 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -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