summaryrefslogtreecommitdiff
path: root/test/spec_builder.rb
diff options
context:
space:
mode:
authorKonstantin Haase <konstantin.mailinglists@googlemail.com>2011-05-31 12:36:52 +0200
committerKonstantin Haase <konstantin.mailinglists@googlemail.com>2011-05-31 12:36:52 +0200
commit992a9ef7f49b8856874d196e7d6e6c09d0e0fe37 (patch)
treee534e5ea10bac5d2823585f5ea5763d103ac03d7 /test/spec_builder.rb
parent15c64da09dee5a10f4459b9f5a7085edb7255532 (diff)
downloadrack-992a9ef7f49b8856874d196e7d6e6c09d0e0fe37.tar.gz
raise and error if config.ru is missing run or map
Diffstat (limited to 'test/spec_builder.rb')
-rw-r--r--test/spec_builder.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/spec_builder.rb b/test/spec_builder.rb
index b9b2aac2..8b1d10b8 100644
--- a/test/spec_builder.rb
+++ b/test/spec_builder.rb
@@ -131,6 +131,12 @@ describe Rack::Builder do
Rack::MockRequest.new(app).get("/").should.be.server_error
end
+ it 'complains about a missing run' do
+ proc do
+ Rack::Builder.app { use Rack::ShowExceptions }
+ end.should.raise(RuntimeError)
+ end
+
describe "parse_file" do
def config_file(name)
File.join(File.dirname(__FILE__), 'builder', name)