Fix failing template renderer tests

This commit is contained in:
Mitchell Hashimoto 2010-03-17 17:05:05 -07:00
parent 974624e5cb
commit 0614882800
1 changed files with 2 additions and 2 deletions

View File

@ -73,12 +73,12 @@ class TemplateRendererTest < Test::Unit::TestCase
@r = Vagrant::TemplateRenderer.new(@template)
@r.stubs(:render)
Vagrant::TemplateRenderer.stubs(:new).with(@template).returns(@r)
Vagrant::TemplateRenderer.stubs(:new).with(@template, {}).returns(@r)
end
should "use the first argument as the template" do
template = "foo"
Vagrant::TemplateRenderer.expects(:new).with(template).returns(@r)
Vagrant::TemplateRenderer.expects(:new).with(template, {}).returns(@r)
Vagrant::TemplateRenderer.render!(template)
end