From 16f7b8ab2ee2dc66dea730f52e9fdcfc2513c51c Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sun, 27 Aug 2017 11:46:59 +0200 Subject: [PATCH] Spec: add parentheses to avoid Ruby warning - avoid the warning: ambiguous first argument; put parentheses or a space even after / operator --- sinatra-contrib/spec/namespace_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'