diff options
author | Adrian Setyadi <a.styd@yahoo.com> | 2019-10-01 13:26:01 +0700 |
---|---|---|
committer | Adrian Setyadi <a.styd@yahoo.com> | 2019-10-01 13:26:01 +0700 |
commit | 9435159d5fb4d0675da84954cbd28606afbf392c (patch) | |
tree | 7a6ded479c8591cf80e3107ec2a96cc2d5f0fbe4 | |
parent | c8d0f2bb35d0abaab3a02fe7eec41bb2d9e68ddf (diff) | |
download | rack-9435159d5fb4d0675da84954cbd28606afbf392c.tar.gz |
Remove Anything from test
AnUnderscoreApp already represent more accurately an app that can be loaded by Rack::Builder, that is a ruby file with file name the same as the underscored name of a class inside the file.
-rw-r--r-- | test/builder/anything.rb | 7 | ||||
-rw-r--r-- | test/spec_builder.rb | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/test/builder/anything.rb b/test/builder/anything.rb deleted file mode 100644 index d8a65871..00000000 --- a/test/builder/anything.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -class Anything - def self.call(env) - [200, { 'Content-Type' => 'text/plain' }, ['OK']] - end -end diff --git a/test/spec_builder.rb b/test/spec_builder.rb index b1701735..dd529db2 100644 --- a/test/spec_builder.rb +++ b/test/spec_builder.rb @@ -240,13 +240,6 @@ describe Rack::Builder do env.must_equal({}) end - it "requires anything not ending in .ru" do - $: << File.dirname(__FILE__) - app, * = Rack::Builder.parse_file 'builder/anything' - Rack::MockRequest.new(app).get("/").body.to_s.must_equal 'OK' - $:.pop - end - it 'requires an_underscore_app not ending in .ru' do $: << File.dirname(__FILE__) app, * = Rack::Builder.parse_file 'builder/an_underscore_app' |