mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
fixed 1.9 too many values test case
This commit is contained in:
parent
dfcb252773
commit
e8d36e8c51
1 changed files with 2 additions and 2 deletions
|
@ -613,14 +613,14 @@ describe "Routing" do
|
|||
assert_raise(ArgumentError) { get '/foo' }
|
||||
end
|
||||
|
||||
it 'does not raise an ArgumentError with block param arity 1 and too many values' do
|
||||
it 'raises an ArgumentError with block param arity 1 and too many values' do
|
||||
mock_app {
|
||||
get '/:foo/:bar/:baz' do |foo|
|
||||
'quux'
|
||||
end
|
||||
}
|
||||
|
||||
assert_raise { get '/a/b/c' }
|
||||
assert_raise(ArgumentError) { get '/a/b/c' }
|
||||
end
|
||||
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue