1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

template_test asserts that lines are equal in the proper order.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@341 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-02-04 05:09:37 +00:00
parent a234dafba2
commit 4058e4d147

View file

@ -45,7 +45,7 @@ class TemplateTest < Test::Unit::TestCase
test = Proc.new do |rendered|
load_result(name).split("\n").zip(rendered.split("\n")).each_with_index do |pair, line|
message = "template: #{name}\nline: #{line}"
assert_equal(pair.first, pair.last, message)
assert_equal(pair.last, pair.first, message)
end
end
test.call(@base.render(name))