Skip to content

Commit

Permalink
Merge pull request #232 from indirect/segiddins/fix-deprecation-warni…
Browse files Browse the repository at this point in the history
…ng-in-specs-with-rack-3.0

Fix deprecation warning in specs with Rack 3.0
  • Loading branch information
segiddins authored May 9, 2024
2 parents ff863c9 + 3203cad commit a0e9578
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 a0e9578

Please sign in to comment.