Testing scope in a dispatch environment.

This commit is contained in:
doop 2013-04-01 08:54:06 +04:00
parent 952b79ab0d
commit 9b86a4075a
1 changed files with 5 additions and 0 deletions

View File

@ -190,9 +190,14 @@ describe Docile do
x(third).should == 'Got a third thing'
end
respond '/params' do |arg|
params[arg].should == 2
end
send_request '/path', 1
send_request '/new_bike', 'ten speed'
send_request '/third', 'third thing'
send_request '/params', :b
@first.should == 1
@second.should == 'Got a new ten speed'