Spec: Rename a local p to path

This commit is contained in:
Olle Jonsson 2017-08-18 09:01:27 +02:00
parent 7c6c03be89
commit 9b608f8c6a
1 changed files with 2 additions and 2 deletions

View File

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