Merge pull request #1343 from olleolleolle/fix/spec-add-parens-to-avoid-warning

Spec: add parentheses to avoid Ruby warning
This commit is contained in:
Zachary Scott 2017-10-29 14:21:28 +09:00 committed by GitHub
commit 2a5cdb0255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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'