Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

run_on_change -> run_on_changes (deprecated)

  • Loading branch information...
commit 5b02818a1e53fc2bf561c4607d6747bf3c68936a 1 parent a79747f
@carhartl authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  lib/guard/pusher.rb
  2. +3 −3 spec/guard/pusher_spec.rb
View
2  lib/guard/pusher.rb
@@ -37,7 +37,7 @@ def initialize(watchers = [], options = {})
end
end
- def run_on_change(paths)
+ def run_on_changes(paths)
::Pusher['guard-pusher'].trigger(@options[:event] || 'guard', { :paths => paths })
end
View
6 spec/guard/pusher_spec.rb
@@ -90,16 +90,16 @@ def without_yaml
channel = mock(Pusher::Channel)
Pusher.stub(:[]).and_return(channel)
channel.should_receive(:trigger).with('custom', { :paths => ['foo'] })
- Guard::Pusher.new([], { :event => 'custom' }).run_on_change(['foo'])
+ Guard::Pusher.new([], { :event => 'custom' }).run_on_changes(['foo'])
end
end
- describe "#run_on_change" do
+ describe "#run_on_changes" do
it "sends Pusher message" do
channel = mock(Pusher::Channel)
Pusher.should_receive(:[]).with('guard-pusher').twice.and_return(channel)
channel.should_receive(:trigger).with('guard', { :paths => ['foo'] })
- subject.run_on_change(['foo'])
+ subject.run_on_changes(['foo'])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.