Skip to content

Commit d77f25d

Browse files
author
Joel Lubrano
committed
Replace .negative? with < 0 for older ruby versions
1 parent 21286f1 commit d77f25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/matchers/have_enqueued_mail.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def mailer_args
108108
else
109109
mailer_method_arity = @mailer_class.instance_method(@method_name).arity
110110

111-
number_of_args = if mailer_method_arity.negative?
111+
number_of_args = if mailer_method_arity < 0
112112
(mailer_method_arity + 1).abs
113113
else
114114
mailer_method_arity

0 commit comments

Comments
 (0)