slightly better error message
This commit is contained in:
parent
77321fdb80
commit
87377ad7ff
@ -125,11 +125,10 @@ private
|
||||
expected_lines.gsub!(/^@charset[^;]+;/,'') if options[:ignore_charset]
|
||||
expected_lines = expected_lines.split("\n").reject{|l| l=~/\A\Z/}
|
||||
expected_lines.zip(actual_lines).each_with_index do |pair, line|
|
||||
message = "template: #{name}\nline: #{line + 1}"
|
||||
if pair.first == pair.last
|
||||
assert(true)
|
||||
else
|
||||
assert false, diff_as_string(pair.first.inspect, pair.last.inspect)
|
||||
assert false, "Error in #{result_path(@current_project)}/#{name}.css:#{line + 1}\n"+diff_as_string(pair.first.inspect, pair.last.inspect)
|
||||
end
|
||||
end
|
||||
if expected_lines.size < actual_lines.size
|
||||
|
Loading…
Reference in New Issue
Block a user