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:
parent
7c6c03be89
commit
ba27d07bc1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue