lib/rack/app/test.rb in rack-app-3.0.0.beta vs lib/rack/app/test.rb in rack-app-3.0.0.delta

- old
+ new

@@ -26,10 +26,9 @@ def rack_app(&block) app_class = defined?(__rack_app_class__) ? __rack_app_class__ : nil constructors = [] constructors << __rack_app_constructor__ if defined?(__rack_app_constructor__) and __rack_app_constructor__.is_a?(Proc) - constructors << block unless block.nil? - Rack::App::Test::Utils.rack_app_by(app_class, constructors) + Rack::App::Test::Utils.rack_app_by(app_class, constructors, &block) end end \ No newline at end of file