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:
parent
4750d08755
commit
16f7b8ab2e
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue