Skip to content

Commit

Permalink
Remove arity check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 26, 2022
1 parent d491cae commit aa81c86
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/spec_lint.rb
Expand Up @@ -263,21 +263,6 @@ def obj.fatal(*) end
Rack::Lint.new(nil).call(env("rack.response_finished" => [-> (env) {}, "not a callable"]))
}.must_raise(Rack::Lint::LintError).
message.must_match(/rack.response_finished values must respond to call/)

lambda {
Rack::Lint.new(nil).call(env("rack.response_finished" => [-> () {}]))
}.must_raise(Rack::Lint::LintError).
message.must_match(/rack.response_finished values must accept an env argument/)

callable_object = Class.new do
def call
end
end.new

lambda {
Rack::Lint.new(nil).call(env("rack.response_finished" => [callable_object]))
}.must_raise(Rack::Lint::LintError).
message.must_match(/rack.response_finished values must accept an env argument/)
end

it "notice input errors" do
Expand Down

0 comments on commit aa81c86

Please sign in to comment.