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

Merge pull request #1337 from olleolleolle/fix/spec-drop-unused-support-method-provides

Spec: Drop unused local assistance method "provides"
This commit is contained in:
Zachary Scott 2017-08-20 10:25:59 +09:00 committed by GitHub
commit 78770cf18d

View file

@ -4,17 +4,11 @@ require 'spec_helper'
require 'okjson'
describe Sinatra::RespondWith do
def provides(*args)
@provides = args
end
def respond_app(&block)
types = @provides
mock_app do
set :app_file, __FILE__
set :views, root + '/respond_with'
register Sinatra::RespondWith
respond_to(*types) if types
class_eval(&block)
end
end