From 6f08a73a000f96ec52818e4c2fe95a6005799602 Mon Sep 17 00:00:00 2001 From: doop Date: Mon, 1 Apr 2013 09:32:07 +0400 Subject: [PATCH] Testing local variable scope on dispatch pattern. --- spec/docile_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/docile_spec.rb b/spec/docile_spec.rb index dd732e8..12f6c24 100644 --- a/spec/docile_spec.rb +++ b/spec/docile_spec.rb @@ -190,8 +190,9 @@ describe Docile do x(third).should == 'Got a third thing' end + fourth = nil respond '/params' do |arg| - params[arg].should == 2 + fourth = params[arg] end send_request '/path', 1 @@ -201,6 +202,7 @@ describe Docile do @first.should == 1 @second.should == 'Got a new ten speed' + fourth.should == 2 end end