diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-11-13 22:15:57 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-11-14 21:53:41 +1300 |
commit | 927ff4493f2969ac8aa5980fa9cdaa6450220a2b (patch) | |
tree | bb3b9c1e45008585be36d6b631dd1865259fdbad /test | |
parent | 2b763e0fae748bc942a625abf5a1a243237fa674 (diff) | |
download | rack-remove-execution-variables.tar.gz |
Add support for default app (404).remove-execution-variables
Diffstat (limited to 'test')
-rw-r--r-- | test/spec_builder.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/spec_builder.rb b/test/spec_builder.rb index eb13a976..3fcc9933 100644 --- a/test/spec_builder.rb +++ b/test/spec_builder.rb @@ -218,10 +218,9 @@ describe Rack::Builder do Rack::MockRequest.new(app).get("/c").status.must_equal 200 end - it 'complains about a missing run' do - proc do - Rack::Lint.new Rack::Builder.app { use Rack::ShowExceptions } - end.must_raise(RuntimeError) + it 'should result in the default app' do + app = Rack::Builder.new.to_app + app.must_equal Rack::Builder::DEFAULT_APP end describe "parse_file" do |