Fix spec on JRuby that was failing due to different execution order

This commit is contained in:
Nick Sieger 2011-05-06 12:09:00 -05:00
parent 815a81dd54
commit 5c1e264c39
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,10 @@ module Guard
@disable = true
end
def self.turn_on
@disable = nil
end
def self.notify(message, options = {})
unless @disable || ENV["GUARD_ENV"] == "test"
image = options[:image] || :success

View File

@ -7,6 +7,7 @@ describe Guard::Notifier do
before(:each) do
@saved_guard_env = ENV["GUARD_ENV"]
ENV["GUARD_ENV"] = 'dont_mute_notify'
subject.turn_on
end
if mac?