From ba27d07bc1b2a8cf7a83b528a006f924be3222f1 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 18 Aug 2017 09:03:42 +0200 Subject: [PATCH] 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 --- sinatra-contrib/spec/respond_with_spec.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sinatra-contrib/spec/respond_with_spec.rb b/sinatra-contrib/spec/respond_with_spec.rb index 49dc8641..11ecf0b7 100644 --- a/sinatra-contrib/spec/respond_with_spec.rb +++ b/sinatra-contrib/spec/respond_with_spec.rb @@ -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