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:
parent
a234dafba2
commit
4058e4d147
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue