From 9b608f8c6a7fee8c76fef4b4337f1e4c00700a9d Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 18 Aug 2017 09:01:27 +0200 Subject: [PATCH] Spec: Rename a local p to path --- sinatra-contrib/spec/respond_with_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sinatra-contrib/spec/respond_with_spec.rb b/sinatra-contrib/spec/respond_with_spec.rb index 49dc8641..29c2d93f 100644 --- a/sinatra-contrib/spec/respond_with_spec.rb +++ b/sinatra-contrib/spec/respond_with_spec.rb @@ -28,9 +28,9 @@ describe Sinatra::RespondWith do end def req(*types) - p = types.shift if types.first.is_a? String and types.first.start_with? '/' + path = types.shift if types.first.is_a?(String) && types.first.start_with?('/') accept = types.map { |t| Sinatra::Base.mime_type(t).to_s }.join ',' - get (p || '/'), {}, 'HTTP_ACCEPT' => accept + get (path || '/'), {}, 'HTTP_ACCEPT' => accept end describe "Helpers#respond_to" do