diff --git a/lib/guard/jruby-rspec.rb b/lib/guard/jruby-rspec.rb index 691fe5a..206d5af 100644 --- a/lib/guard/jruby-rspec.rb +++ b/lib/guard/jruby-rspec.rb @@ -49,7 +49,7 @@ def start run_all if @options[:all_on_start] end - def run_on_change(raw_paths) + def run_on_changes(raw_paths) reload_paths(raw_paths) unless @custom_watchers.nil? or @custom_watchers.empty? @@ -65,6 +65,8 @@ def run_on_change(raw_paths) super(paths) end end + # Guard 1.1 renamed run_on_change to run_on_changes + alias_method :run_on_change, :run_on_changes def reload_paths(paths) paths.each do |p|