From 916613c027c05e99f21db0ef7078d8ab66e49f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Coutable?= Date: Fri, 23 Sep 2011 00:22:25 +0200 Subject: [PATCH] Ensure group name is a Symbol in Guard::Guard#initialize --- lib/guard/guard.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/guard/guard.rb b/lib/guard/guard.rb index 184d22e..f63be8d 100644 --- a/lib/guard/guard.rb +++ b/lib/guard/guard.rb @@ -19,7 +19,7 @@ module Guard # @param [Hash] options the custom Guard options. # def initialize(watchers = [], options = {}) - @group = options.delete(:group) || :default + @group = options[:group] ? options.delete(:group).to_sym : :default @watchers, @options = watchers, options end @@ -85,4 +85,5 @@ module Guard end end + end