diff options
author | Andreas Wurm <andreaswurm@gmx.de> | 2011-03-31 00:55:38 +0200 |
---|---|---|
committer | Andreas Wurm <andreaswurm@gmx.de> | 2011-03-31 00:55:38 +0200 |
commit | d31cf2b7c0c77c04510c08d95776315ceb24ba54 (patch) | |
tree | fe9d69b6bcae180bcec13896152c6d4f1ac12d68 /test/spec_builder.rb | |
parent | 2f92be21302db255f4357e95e9e1ce535b1a6a89 (diff) | |
download | rack-d31cf2b7c0c77c04510c08d95776315ceb24ba54.tar.gz |
allow multi-line comments in the config file
Diffstat (limited to 'test/spec_builder.rb')
-rw-r--r-- | test/spec_builder.rb | 6 |
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' |