update headless

This commit is contained in:
hysios hu 2012-09-20 14:01:41 +08:00
parent d462bd11b1
commit 0a63582366

View File

@ -36,9 +36,26 @@ module Jasmine
def root
@root ||= Pathname(File.expand_path('../../..', __FILE__))
end
def warn(message)
output.puts message if show_warnings?
end
def show_warnings=(show)
@show_warnings = show
end
def show_warnings?
@show_warnings = true if @show_warnings.nil?
@show_warnings
end
def output
$stdout
end
end
end
end
require 'jasmine/headless/errors'