spec/unit/scope/test_proc_scope.rb in wlang-2.0.1 vs spec/unit/scope/test_proc_scope.rb in wlang-2.1.0

- old
+ new

@@ -7,10 +7,10 @@ scope = Scope.coerce(lambda{ {:who => "World"} }) scope.fetch(:who).should eq("World") end it 'delegates fetch to its parent when not found' do - scope = Scope.coerce(lambda{ nil }, Scope.coerce({:who => "World"})) + scope = Scope.coerce({:who => "World"}).push(lambda{ nil }) scope.fetch(:who).should eq("World") end end # describe ProcScope end # class Scope