fixed failing template render test

This commit is contained in:
John Bender 2010-08-21 23:59:41 -07:00
parent 0bd01137a1
commit f8731c9a8c
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ class TemplateRendererUtilTest < Test::Unit::TestCase
end end
should "simply render the template as a string" do should "simply render the template as a string" do
ERB.expects(:new).with(@r.template, nil, "%<>-").returns(@erb) Erubis::Eruby.expects(:new).with(@r.template, :trim => true).returns(@erb)
@erb.expects(:result).returns(@result)
assert_equal @result, @r.render_string assert_equal @result, @r.render_string
end end
end end