Permalink
Browse files

Implement Guard 1.1 `run_on_changes` method

  • Loading branch information...
1 parent a461d75 commit 6b659d9e9909121e87f059126f78889cd3e924cc Thibaud Guillaume-Gentil committed May 20, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/guard/pow.rb
  2. +2 −2 spec/guard/pow_spec.rb
View
@@ -24,7 +24,7 @@ def reload
runner.restart_pow if @options[:restart_on_reload]
end
- def run_on_change(paths)
+ def run_on_changes(paths)
runner.restart_pow
end
@@ -24,10 +24,10 @@
end
end
- describe "run_on_change" do
+ describe "run_on_changes" do
it "should restart pow" do
subject.runner.should_receive(:restart_pow)
- subject.run_on_change(["xxx"])
+ subject.run_on_changes(["xxx"])
end
end

0 comments on commit 6b659d9

Please sign in to comment.