diff --git a/lib/super_diff/operational_sequencers/hash.rb b/lib/super_diff/operational_sequencers/hash.rb index e017cf6a..b609a58f 100644 --- a/lib/super_diff/operational_sequencers/hash.rb +++ b/lib/super_diff/operational_sequencers/hash.rb @@ -108,7 +108,6 @@ def unary_operations_using_variant_of_patience_algorithm start_index.upto(eks.size - 1) do |ei2| ek = eks[ei2] ev, av2 = expected[ek], actual[ek] - ai2 = aks.index(ek) if actual.include?(ek) && ev == av2 # If the key in 'expected' we've landed on happens to be a diff --git a/lib/super_diff/rspec/augmented_matcher.rb b/lib/super_diff/rspec/augmented_matcher.rb index ff0b943d..6957d280 100644 --- a/lib/super_diff/rspec/augmented_matcher.rb +++ b/lib/super_diff/rspec/augmented_matcher.rb @@ -31,7 +31,7 @@ def build_failure_message(negated:) def matcher_text_builder @_matcher_text_builder ||= - matcher_text_builder_class.new(matcher_text_builder_args) + matcher_text_builder_class.new(**matcher_text_builder_args) end def matcher_text_builder_class diff --git a/lib/super_diff/rspec/matcher_text_builders/match.rb b/lib/super_diff/rspec/matcher_text_builders/match.rb index 6c6ef8ce..7c8b8aae 100644 --- a/lib/super_diff/rspec/matcher_text_builders/match.rb +++ b/lib/super_diff/rspec/matcher_text_builders/match.rb @@ -3,7 +3,7 @@ module RSpec module MatcherTextBuilders class Match < Base def initialize(expected_captures:, **rest) - super(rest) + super(**rest) @expected_captures = expected_captures end diff --git a/lib/super_diff/rspec/matcher_text_builders/respond_to.rb b/lib/super_diff/rspec/matcher_text_builders/respond_to.rb index eb62a724..0dac37fd 100644 --- a/lib/super_diff/rspec/matcher_text_builders/respond_to.rb +++ b/lib/super_diff/rspec/matcher_text_builders/respond_to.rb @@ -9,7 +9,7 @@ def initialize( unlimited_arguments:, **rest ) - super(rest) + super(**rest) @expected_arity = expected_arity @arbitrary_keywords = arbitrary_keywords @expected_keywords = expected_keywords diff --git a/lib/super_diff/rspec/operational_sequencers/collection_containing_exactly.rb b/lib/super_diff/rspec/operational_sequencers/collection_containing_exactly.rb index 58e1f097..55a86208 100644 --- a/lib/super_diff/rspec/operational_sequencers/collection_containing_exactly.rb +++ b/lib/super_diff/rspec/operational_sequencers/collection_containing_exactly.rb @@ -7,7 +7,7 @@ def self.applies_to?(expected, actual) actual.is_a?(::Array) end - def initialize(actual:, **rest) + def initialize(actual:, **) super populate_pairings_maximizer_in_expected_with(actual) end