test/cli/commands/test_watch.rb in nanoc-3.6.2 vs test/cli/commands/test_watch.rb in nanoc-3.6.3

- old
+ new

@@ -54,9 +54,19 @@ watch_thread.kill end end + def test_growlnotify_cmd + notifier = Nanoc::CLI::Commands::Watch::Notifier.new + assert_equal [ 'growlnotify', '-m', 'foo' ], notifier.send(:growlnotify_cmd_for, 'foo') + end + + def test_growlnotify_windows_cmd + notifier = Nanoc::CLI::Commands::Watch::Notifier.new + assert_equal [ 'growlnotify', '/t:nanoc', 'foo' ], notifier.send(:growlnotify_windows_cmd_for, 'foo') + end + def wait_until_exists(filename) 20.times do break if File.file?(filename) sleep 0.5 end