Always make sure you're asserting that assertions were run.
This commit is contained in:
parent
6569d1b0fd
commit
33c1a76891
|
@ -507,6 +507,7 @@ describe "Routing" do
|
||||||
}
|
}
|
||||||
|
|
||||||
get '/bar'
|
get '/bar'
|
||||||
|
assert ok?
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'passes multiple params as block parameters when many are specified' do
|
it 'passes multiple params as block parameters when many are specified' do
|
||||||
|
@ -519,6 +520,7 @@ describe "Routing" do
|
||||||
}
|
}
|
||||||
|
|
||||||
get '/abc/def/ghi'
|
get '/abc/def/ghi'
|
||||||
|
assert ok?
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'passes regular expression captures as block parameters' do
|
it 'passes regular expression captures as block parameters' do
|
||||||
|
@ -530,6 +532,7 @@ describe "Routing" do
|
||||||
}
|
}
|
||||||
|
|
||||||
get '/foorooomma/baf'
|
get '/foorooomma/baf'
|
||||||
|
assert ok?
|
||||||
end
|
end
|
||||||
|
|
||||||
it "supports mixing multiple splat params like /*/foo/*/* as block parameters" do
|
it "supports mixing multiple splat params like /*/foo/*/* as block parameters" do
|
||||||
|
@ -542,6 +545,7 @@ describe "Routing" do
|
||||||
}
|
}
|
||||||
|
|
||||||
get '/bar/foo/bling/baz/boom'
|
get '/bar/foo/bling/baz/boom'
|
||||||
|
assert ok?
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'raises an ArgumentError if there are too few block parameters' do
|
it 'raises an ArgumentError if there are too few block parameters' do
|
||||||
|
|
Loading…
Reference in New Issue