lib/chef/handler/status_notifier.rb in chef-handler-status_notifier-0.0.2 vs lib/chef/handler/status_notifier.rb in chef-handler-status_notifier-0.3.0
- old
+ new
@@ -1,7 +1,10 @@
require 'rubygems'
-require 'chef/handler'
-require 'chef'
+
+unless ENV['RSPEC']
+ require 'chef'
+ require 'chef/handler'
+end
require 'hipchat'
require 'slack-notifier'
class StatusNotifierHandler < Chef::Handler