Spec: Drop unused local assistance method

- the "provides" method was never called, and its instance variable never set
  - this change removes warnings output from the test run
This commit is contained in:
Olle Jonsson 2017-08-18 09:03:42 +02:00
parent 7c6c03be89
commit ba27d07bc1
1 changed files with 0 additions and 6 deletions

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