diff --git a/lib/guard/dsl.rb b/lib/guard/dsl.rb index 454729d..68b9f8f 100644 --- a/lib/guard/dsl.rb +++ b/lib/guard/dsl.rb @@ -90,7 +90,7 @@ module Guard end def group(name, &guard_definition) - guard_definition.call if guard_definition && (@@options[:group].empty? || @@options[:group].include?(name)) + guard_definition.call if guard_definition && (@@options[:group].empty? || @@options[:group].include?(name.to_s)) end def guard(name, options = {}, &watch_definition) diff --git a/spec/guard/dsl_spec.rb b/spec/guard/dsl_spec.rb index 26ef5ef..59186d2 100644 --- a/spec/guard/dsl_spec.rb +++ b/spec/guard/dsl_spec.rb @@ -251,7 +251,7 @@ private end def valid_guardfile_string - "group 'x' do + "group :x do guard 'test' do watch('c') end