Skip to content

Commit cb35667

Browse files
committed
Correct mocking of no-op RackApplicationFactory
Signed-off-by: Chad Wilson <[email protected]>
1 parent 34f390c commit cb35667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spec/ruby/rack/application_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def it_should_rewind_body
170170
$servlet_context = @servlet_context
171171
# NOTE: a workaround to be able to mock it :
172172
klass = Class.new(DefaultRackApplicationFactory) do
173-
def createRackServletWrapper(runtime, rackup); end
173+
def createRackServletWrapper(runtime, rackup, filename); end
174174
end
175175
@app_factory = klass.new
176176

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

0 commit comments

Comments
 (0)