Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggythehamster authored and ioquatix committed Mar 24, 2020
1 parent 10d0e24 commit 026537f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/spec_lint.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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?"))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 026537f

Please sign in to comment.