From 3203cad2762f8a25b487ec983a0a0932867b2d4f Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 9 May 2024 12:01:43 -0400 Subject: [PATCH] Fix deprecation warning in specs with Rack 3.0 Rack::File is now Rack::Files --- spec/footnotes_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/footnotes_spec.rb b/spec/footnotes_spec.rb index 185ec57..475e66e 100644 --- a/spec/footnotes_spec.rb +++ b/spec/footnotes_spec.rb @@ -57,7 +57,7 @@ def @file.body; read; end end end - context "response_body is Rack::File::Iterator" do + context "response_body is Rack::Files::Iterator" do before do @controller = FootnotesController.new @controller.template = Object.new @@ -69,7 +69,7 @@ def @file.body; read; end Footnotes::Filter.multiple_notes = false @footnotes = Footnotes::Filter.new(@controller) - @file = Rack::File::Iterator.new("README.md", (0..-1), {}) + @file = Rack::Files::Iterator.new("README.md", (0..-1), {}) @controller.response_body = @file end