diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 10:50:34 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | 089f932537a540af9c27dd03caf30eff6b4a0306 (patch) | |
tree | 9107279885b3650b5c655840ea690c24c9683852 /spec/hunk_spec.rb | |
parent | cb9bebb30477e815cdbe8f8460f227f0940599a1 (diff) | |
download | diff-lcs-089f932537a540af9c27dd03caf30eff6b4a0306.tar.gz |
standardrb --only Layout/ExtraSpacing --fix and ignore
Diffstat (limited to 'spec/hunk_spec.rb')
-rw-r--r-- | spec/hunk_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/hunk_spec.rb b/spec/hunk_spec.rb index 339f4ab..c52a6fd 100644 --- a/spec/hunk_spec.rb +++ b/spec/hunk_spec.rb @@ -8,8 +8,8 @@ if String.method_defined?(:encoding) describe Diff::LCS::Hunk do let(:old_data) { ["Tu a un carté avec {count} itéms".encode("UTF-16LE")] } let(:new_data) { ["Tu a un carte avec {count} items".encode("UTF-16LE")] } - let(:pieces) { Diff::LCS.diff old_data, new_data } - let(:hunk) { Diff::LCS::Hunk.new(old_data, new_data, pieces[0], 3, 0) } + let(:pieces) { Diff::LCS.diff old_data, new_data } + let(:hunk) { Diff::LCS::Hunk.new(old_data, new_data, pieces[0], 3, 0) } it "produces a unified diff from the two pieces" do expected = <<-EXPECTED.gsub(/^\s+/, "").encode("UTF-16LE").chomp |