summaryrefslogtreecommitdiff
path: root/test/spec_builder.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-11-13 22:15:57 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-11-14 21:53:41 +1300
commit927ff4493f2969ac8aa5980fa9cdaa6450220a2b (patch)
treebb3b9c1e45008585be36d6b631dd1865259fdbad /test/spec_builder.rb
parent2b763e0fae748bc942a625abf5a1a243237fa674 (diff)
downloadrack-remove-execution-variables.tar.gz
Add support for default app (404).remove-execution-variables
Diffstat (limited to 'test/spec_builder.rb')
-rw-r--r--test/spec_builder.rb7
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