Skip to content

Commit

Permalink
Fix deprecation warning in specs with Rack 3.0
Browse files Browse the repository at this point in the history
Rack::File is now Rack::Files
  • Loading branch information
segiddins committed May 9, 2024
1 parent ff863c9 commit 3203cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/footnotes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 3203cad

Please sign in to comment.