Skip to content

Commit a4ad62e

Browse files
committed
Style/Proc
1 parent 5741929 commit a4ad62e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class HaveBroadcastedTo < RSpec::Matchers::BuiltIn::BaseMatcher
88
def initialize(target, channel:)
99
@target = target
1010
@channel = channel
11-
@block = Proc.new {}
11+
@block = proc {}
1212
@data = nil
1313
set_expected_number(:exactly, 1)
1414
end

lib/rspec/rails/matchers/active_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize
1515
@args = []
1616
@queue = nil
1717
@at = nil
18-
@block = Proc.new {}
18+
@block = proc {}
1919
set_expected_number(:exactly, 1)
2020
end
2121

lib/rspec/rails/matchers/have_enqueued_mail.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def base_mailer_args
9393
end
9494

9595
def yield_mail_args(block)
96-
Proc.new { |*job_args| block.call(*(job_args - base_mailer_args)) }
96+
proc { |*job_args| block.call(*(job_args - base_mailer_args)) }
9797
end
9898

9999
def check_active_job_adapter

0 commit comments

Comments
 (0)