Permalink
Browse files

Ruby 1.8 hash syntax

  • Loading branch information...
1 parent c411665 commit 548737451437968a2640c6a6ef81c1c852922524 @amiel amiel committed Mar 27, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/guard/notifiers/file_notifier.rb
  2. +2 −2 spec/guard/notifiers/file_notifier_spec.rb
@@ -11,7 +11,7 @@ module FileNotifier
# Default options for FileNotifier
DEFAULTS = {
- format: "%s\n%s\n%s\n"
+ :format => "%s\n%s\n%s\n"
}
# Test if the file notification option is available?
@@ -13,13 +13,13 @@
it 'writes to a file on success' do
subject.should_receive(:write).with('tmp/guard_result', "success\nany title\nany message\n")
- subject.notify('success', 'any title', 'any message', 'any image', { path: 'tmp/guard_result' })
+ subject.notify('success', 'any title', 'any message', 'any image', { :path => 'tmp/guard_result' })
end
it 'also writes to a file on failure' do
subject.should_receive(:write).with('tmp/guard_result', "failed\nany title\nany message\n")
- subject.notify('failed', 'any title', 'any message', 'any image', { path: 'tmp/guard_result' })
+ subject.notify('failed', 'any title', 'any message', 'any image', { :path => 'tmp/guard_result' })
end
# We don't have a way to return false in .available? when no path is

0 comments on commit 5487374

Please sign in to comment.