1
0
Fork 0
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:
Brandon Dimcheff 2009-02-02 19:09:44 -05:00 committed by Ryan Tomayko
parent dfcb252773
commit e8d36e8c51

View file

@ -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