summaryrefslogtreecommitdiff
path: root/test/spec_builder.rb
diff options
context:
space:
mode:
authorAndreas Wurm <andreaswurm@gmx.de>2011-03-31 00:55:38 +0200
committerAndreas Wurm <andreaswurm@gmx.de>2011-03-31 00:55:38 +0200
commitd31cf2b7c0c77c04510c08d95776315ceb24ba54 (patch)
treefe9d69b6bcae180bcec13896152c6d4f1ac12d68 /test/spec_builder.rb
parent2f92be21302db255f4357e95e9e1ce535b1a6a89 (diff)
downloadrack-d31cf2b7c0c77c04510c08d95776315ceb24ba54.tar.gz
allow multi-line comments in the config file
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 1e5715c4..f7501ae4 100644
--- a/test/spec_builder.rb
+++ b/test/spec_builder.rb
@@ -136,6 +136,12 @@ describe Rack::Builder do
Rack::MockRequest.new(app).get("/").body.to_s.should.equal 'OK'
end
+ it "supports multi-line comments" do
+ lambda {
+ Rack::Builder.parse_file config_file('comment.ru')
+ }.should.not.raise(SyntaxError)
+ end
+
it "requires anything not ending in .ru" do
$: << File.dirname(__FILE__)
app, options = Rack::Builder.parse_file 'builder/anything'