Skip to content

Commit

Permalink
Correct order for arguments to test/unit assert_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
enosis committed Sep 2, 2010
1 parent 393c9e4 commit 88087ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby_haml_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_#{name.gsub(/\s+|[^a-zA-Z0-9_]/, "_")}
locals = Hash[*(#{test}["locals"] || {}).collect {|k, v| [k.to_sym, v] }.flatten]
options = Hash[*(#{test}["config"] || {}).collect {|k, v| [k.to_sym, v.to_sym] }.flatten]
engine = Haml::Engine.new(#{test}["haml"], options)
assert_equal(engine.render(Object.new, locals).chomp, #{test}["html"])
assert_equal(#{test}["html"], engine.render(Object.new, locals).chomp)
end
EOTEST
end
Expand Down

0 comments on commit 88087ad

Please sign in to comment.