Skip to content

Commit

Permalink
Correct mocking of no-op RackApplicationFactory
Browse files Browse the repository at this point in the history
Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
  • Loading branch information
chadlwilson committed Jun 28, 2024
1 parent 34f390c commit cb35667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spec/ruby/rack/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def it_should_rewind_body
$servlet_context = @servlet_context
# NOTE: a workaround to be able to mock it :
klass = Class.new(DefaultRackApplicationFactory) do
def createRackServletWrapper(runtime, rackup); end
def createRackServletWrapper(runtime, rackup, filename); end
end
@app_factory = klass.new

Expand Down Expand Up @@ -562,7 +562,7 @@ def reset_config
it "should init and create application object" do
# NOTE: a workaround to be able to mock it :
klass = Class.new(RailsRackApplicationFactory) do
def createRackServletWrapper(runtime, rackup); end
def createRackServletWrapper(runtime, rackup, filename); end
end
@app_factory = klass.new

Expand Down

0 comments on commit cb35667

Please sign in to comment.