spec/spec_helper.rb in version_info-1.7.5 vs spec/spec_helper.rb in version_info-1.7.6

- old
+ new

@@ -1,3 +1,29 @@ + require 'test_notifier/runner/rspec' require 'version_info' +if Notifier.os?(/mingw32/) + module Notifier + module Growl + def supported? + return true + end + def notify(options) + command = [ + "growlnotify", + "/a:test_notifier", + "/i:" + options.fetch(:image, ''), + "/p:2", + "/silent:true", + "/r:" + '"General Notification"', + "/t:" + options[:title], + options[:message] + ] + system(*command) + end + + def self.register + end + end + end +end