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:
commit
78770cf18d
1 changed files with 0 additions and 6 deletions
|
@ -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 a new issue