1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Spec: add parentheses to avoid Ruby warning

- avoid the warning: ambiguous first argument; put parentheses or a space even after / operator
This commit is contained in:
Olle Jonsson 2017-08-27 11:46:59 +02:00
parent 4750d08755
commit 16f7b8ab2e

View file

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