diff --git a/sinatra-contrib/spec/namespace_spec.rb b/sinatra-contrib/spec/namespace_spec.rb index c201e5f8..c4bab316 100644 --- a/sinatra-contrib/spec/namespace_spec.rb +++ b/sinatra-contrib/spec/namespace_spec.rb @@ -137,7 +137,7 @@ describe Sinatra::Namespace do describe 'helpers' do it 'are defined using the helpers method' do - namespace /\/foo\/([^\/&?]+)\/bar\/([^\/&?]+)\// do + namespace(/\/foo\/([^\/&?]+)\/bar\/([^\/&?]+)\//) do helpers do def foo 'foo'