Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow symbols for group names

  • Loading branch information...
commit 087f51085f850fcd43a38b2f96248b9745ff28af 1 parent 048ed9c
@johnbintz johnbintz authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/guard/dsl.rb
  2. +1 −1  spec/guard/dsl_spec.rb
View
2  lib/guard/dsl.rb
@@ -90,7 +90,7 @@ def home_guardfile_path
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)
View
2  spec/guard/dsl_spec.rb
@@ -251,7 +251,7 @@ def fake_guardfile(name, contents)
end
def valid_guardfile_string
- "group 'x' do
+ "group :x do
guard 'test' do
watch('c')
end

0 comments on commit 087f510

Please sign in to comment.
Something went wrong with that request. Please try again.