1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

Testing scope in a dispatch environment.

This commit is contained in:
doop 2013-04-01 08:54:06 +04:00
parent 952b79ab0d
commit 9b86a4075a

View file

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