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:
parent
952b79ab0d
commit
9b86a4075a
1 changed files with 5 additions and 0 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue