lib/jasmine/headless.rb in jasmine-headless-webkit-0.8.4 vs lib/jasmine/headless.rb in jasmine-headless-webkit-0.9.0.rc1

- old
+ new

@@ -33,9 +33,27 @@ class << self 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'