diff options
author | Keith Gable <ziggy@ignition-project.com> | 2020-03-23 15:18:08 -0700 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-03-25 12:37:11 +1300 |
commit | 026537fbe8baa9a9ac71417815b5be26fc28da4f (patch) | |
tree | fd897d0c59776c50f16003799e280b428eff4732 | |
parent | 10d0e24ed773d2360bb4b35db6441c01142dfefd (diff) | |
download | rack-026537fbe8baa9a9ac71417815b5be26fc28da4f.tar.gz |
Update tests
-rwxr-xr-x[-rw-r--r--] | test/spec_lint.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/spec_lint.rb b/test/spec_lint.rb index 7b2151b0..f7da81c3 100644..100755 --- a/test/spec_lint.rb +++ b/test/spec_lint.rb @@ -156,7 +156,7 @@ describe Rack::Lint do [] }).call(env("rack.multipart.tempfile_factory" => lambda { |filename, content_type| String.new })) }.must_raise(Rack::Lint::LintError). - message.must_equal "response array [] has 0 elements instead of 3" + message.must_equal "response array has 0 elements instead of 3" lambda { Rack::Lint.new(nil).call(env("REQUEST_METHOD" => "FUCKUP?")) @@ -250,14 +250,14 @@ describe Rack::Lint do "" }).call(env({})) }.must_raise(Rack::Lint::LintError). - message.must_include('response "" is not an Array , but String') + message.must_include('response is not an Array, but String') lambda { Rack::Lint.new(lambda { |env| [nil, nil, nil, nil] }).call(env({})) }.must_raise(Rack::Lint::LintError). - message.must_include('response array [nil, nil, nil, nil] has 4 elements instead of 3') + message.must_include('response array has 4 elements instead of 3') end it "notice status errors" do |