From a98a50484922ef24a5568508bd309ea6568d2d08 Mon Sep 17 00:00:00 2001 From: John Bender Date: Sun, 22 Aug 2010 00:08:15 -0700 Subject: [PATCH] fixed lambda wront # of arguments in warden test --- test/vagrant/action/warden_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/vagrant/action/warden_test.rb b/test/vagrant/action/warden_test.rb index 914a2eb7a..c7acb1db3 100644 --- a/test/vagrant/action/warden_test.rb +++ b/test/vagrant/action/warden_test.rb @@ -41,7 +41,7 @@ class ActionWardenTest < Test::Unit::TestCase end should "move the last action to the front of the stack" do - @instance.actions << lambda {} + @instance.actions << lambda { |env| } assert @instance.stack.empty? @instance.call(new_env) assert !@instance.stack.empty? @@ -82,7 +82,7 @@ class ActionWardenTest < Test::Unit::TestCase @instance.expects(:begin_rescue) @instance.call(new_env) end - + def new_env_with_error env = new_env env.error!(:foo) @@ -125,12 +125,12 @@ class ActionWardenTest < Test::Unit::TestCase context "with many middleware" do should "not call middleware after" do - + end end end - + def new_env Vagrant::Action::Environment.new(nil)