From cb356674de495300544a32d47bbb4bf72cbbfeee Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Fri, 28 Jun 2024 10:31:33 +0800 Subject: [PATCH] Correct mocking of no-op RackApplicationFactory Signed-off-by: Chad Wilson --- src/spec/ruby/rack/application_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spec/ruby/rack/application_spec.rb b/src/spec/ruby/rack/application_spec.rb index eeab96e1..f21f637d 100644 --- a/src/spec/ruby/rack/application_spec.rb +++ b/src/spec/ruby/rack/application_spec.rb @@ -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 @@ -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