Workaround to fix lineno
This commit is contained in:
parent
b5939a3568
commit
3d7470989c
|
@ -34,12 +34,10 @@ module RenderAssertion
|
|||
assert_equal html, render(haml, options)
|
||||
end
|
||||
|
||||
def render(text, options = {}, base = nil, &block)
|
||||
def render(text, options = {}, &block)
|
||||
scope = options.delete(:scope) || Object.new
|
||||
locals = options.delete(:locals) || {}
|
||||
engine = Hamlit::HamlEngine.new(text, options)
|
||||
return engine.to_html(base) if base
|
||||
engine.to_html(scope, locals, &block)
|
||||
eval Hamlit::HamlEngine.new(text, options).precompiled
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue