Permalink
Browse files

Made compatible with latest Lua-Haml.

  • Loading branch information...
1 parent b37af3c commit df0bb94b3c83165851983a77874999fdf87a5502 @norman norman committed Oct 14, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lua_haml_spec.lua
View
3 lua_haml_spec.lua
@@ -29,7 +29,8 @@ describe("LuaHaml", function()
describe("When handling " .. context, function()
for name, exp in pairs(expectations) do
it(("should correctly render %s"):format(name), function()
- assert_equal(haml.render(exp.haml, exp.config or {}, exp.locals or {}), exp.html)
+ local engine = haml.new(exp.config)
+ assert_equal(engine:render(exp.haml, exp.locals), exp.html)
end)
end
end)

0 comments on commit df0bb94

Please sign in to comment.