lib/watirspec/guards.rb in watir-6.5.0 vs lib/watirspec/guards.rb in watir-6.6.0

- old
+ new

@@ -10,20 +10,20 @@ guards[impls] << {name: guard_name, data: data} end def report gs = WatirSpec.implementation.matching_guards_in(guards) - print "\n\nWatirSpec guards for this implementation: " + str= "WatirSpec guards for this implementation: \n" if gs.empty? - puts "none." + "\tnone." else - puts gs.each do |guard| guard[:data][:file] = guard[:data][:file][/\/spec\/(.*):/, 1] guard_name = "#{guard[:name]}:".ljust(15) - puts " #{guard_name} #{guard[:data].inspect}" + str << " \t#{guard_name} #{guard[:data].inspect}" end + Watir.logger.warn str end end end # class << self private