Skip to content

Commit dd00918

Browse files
numbatamcmire
authored andcommitted
Prepare for Ruby 2.7
1 parent dfb5aaa commit dd00918

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/super_diff/rspec/augmented_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def build_failure_message(negated:)
3131

3232
def matcher_text_builder
3333
@_matcher_text_builder ||=
34-
matcher_text_builder_class.new(matcher_text_builder_args)
34+
matcher_text_builder_class.new(**matcher_text_builder_args)
3535
end
3636

3737
def matcher_text_builder_class

lib/super_diff/rspec/matcher_text_builders/match.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module RSpec
33
module MatcherTextBuilders
44
class Match < Base
55
def initialize(expected_captures:, **rest)
6-
super(rest)
6+
super(**rest)
77
@expected_captures = expected_captures
88
end
99

lib/super_diff/rspec/matcher_text_builders/respond_to.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def initialize(
99
unlimited_arguments:,
1010
**rest
1111
)
12-
super(rest)
12+
super(**rest)
1313
@expected_arity = expected_arity
1414
@arbitrary_keywords = arbitrary_keywords
1515
@expected_keywords = expected_keywords

0 commit comments

Comments
 (0)