Skip to content
Permalink
Browse files

Update tests

  • Loading branch information
ziggythehamster authored and ioquatix committed Mar 23, 2020
1 parent 10d0e24 commit 026537fbe8baa9a9ac71417815b5be26fc28da4f
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/spec_lint.rb
6 test/spec_lint.rb 100644 → 100755
@@ -156,7 +156,7 @@ def obj.error(*) end
[]
}).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 @@ def result.name
""
}).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

0 comments on commit 026537f

Please sign in to comment.
You can’t perform that action at this time.