lib/watirspec/guards.rb in watir-6.0.3 vs lib/watirspec/guards.rb in watir-6.1.0
- old
+ new
@@ -17,10 +17,12 @@
if gs.empty?
puts "none."
else
puts
gs.each do |guard|
- puts "\t#{guard[:name].to_s.ljust(20)}: #{guard[:data].inspect}"
+ guard[:data][:file] = guard[:data][:file][/\/spec\/(.*):/, 1]
+ guard_name = "#{guard[:name]}:".ljust(15)
+ puts " #{guard_name} #{guard[:data].inspect}"
end
end
end
end # class << self