fixed lambda wront # of arguments in warden test

This commit is contained in:
John Bender 2010-08-22 00:08:15 -07:00
parent c519f14626
commit a98a504849
1 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ class ActionWardenTest < Test::Unit::TestCase
end end
should "move the last action to the front of the stack" do should "move the last action to the front of the stack" do
@instance.actions << lambda {} @instance.actions << lambda { |env| }
assert @instance.stack.empty? assert @instance.stack.empty?
@instance.call(new_env) @instance.call(new_env)
assert !@instance.stack.empty? assert !@instance.stack.empty?
@ -82,7 +82,7 @@ class ActionWardenTest < Test::Unit::TestCase
@instance.expects(:begin_rescue) @instance.expects(:begin_rescue)
@instance.call(new_env) @instance.call(new_env)
end end
def new_env_with_error def new_env_with_error
env = new_env env = new_env
env.error!(:foo) env.error!(:foo)
@ -125,12 +125,12 @@ class ActionWardenTest < Test::Unit::TestCase
context "with many middleware" do context "with many middleware" do
should "not call middleware after" do should "not call middleware after" do
end end
end end
end end
def new_env def new_env
Vagrant::Action::Environment.new(nil) Vagrant::Action::Environment.new(nil)