Testing local variable scope on dispatch pattern.
This commit is contained in:
parent
1e178d48c1
commit
6f08a73a00
|
@ -190,8 +190,9 @@ describe Docile do
|
||||||
x(third).should == 'Got a third thing'
|
x(third).should == 'Got a third thing'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
fourth = nil
|
||||||
respond '/params' do |arg|
|
respond '/params' do |arg|
|
||||||
params[arg].should == 2
|
fourth = params[arg]
|
||||||
end
|
end
|
||||||
|
|
||||||
send_request '/path', 1
|
send_request '/path', 1
|
||||||
|
@ -201,6 +202,7 @@ describe Docile do
|
||||||
|
|
||||||
@first.should == 1
|
@first.should == 1
|
||||||
@second.should == 'Got a new ten speed'
|
@second.should == 'Got a new ten speed'
|
||||||
|
fourth.should == 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue