Skip to content

Commit c78dd59

Browse files
author
Joel Lubrano
committed
Remove %i array syntax for older ruby versions
1 parent e53504c commit c78dd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rspec/rails/matchers/have_enqueued_mail.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ def on_queue(queue)
5151
self
5252
end
5353

54-
%i[exactly at_least at_most].each do |method|
54+
[:exactly, :at_least, :at_most].each do |method|
5555
define_method(method) do |count|
5656
@job_matcher.public_send(method, count)
5757
set_expected_count(method, count)
5858
self
5959
end
6060
end
6161

62-
%i[once twice thrice].each do |method|
62+
[:once, :twice, :thrice].each do |method|
6363
define_method(method) do
6464
@job_matcher.public_send(method)
6565
exactly(method)

0 commit comments

Comments
 (0)