diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 10:43:29 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:09 -0400 |
commit | 106d1749c965b8af857c976197814707b66cbef0 (patch) | |
tree | a888b76791ab6ffc32c147b97fbaa0c8661f5f74 /spec | |
parent | 3062997fbbe19cb6099a65a5dbcd0aba7b9b17c7 (diff) | |
download | diff-lcs-106d1749c965b8af857c976197814707b66cbef0.tar.gz |
Fix issues reported by fasterer
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 41e1f8e..79c4e45 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -355,9 +355,7 @@ module Diff::LCS::SpecHelper matcher :correctly_map_sequence do |s1| match do |actual| - actual.each_with_index { |ee, ii| - expect(ee).to be_nil_or_match_values(ii, s1, @s2) - } + actual.each_index { |ii| expect(actual[ii]).to be_nil_or_match_values(ii, s1, @s2) } end chain :to_other_sequence do |s2| |