diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 10:54:52 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | f5781c06b2c297caf58c97824c77f557831094a7 (patch) | |
tree | fbb662bcb068c52bd20604b32b83e8c73da2d8c5 /spec | |
parent | 089f932537a540af9c27dd03caf30eff6b4a0306 (diff) | |
download | diff-lcs-f5781c06b2c297caf58c97824c77f557831094a7.tar.gz |
ignore Layout/heredocIndentation due to old Ruby
Diffstat (limited to 'spec')
-rw-r--r-- | spec/issues_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/issues_spec.rb b/spec/issues_spec.rb index abe524e..ec2abeb 100644 --- a/spec/issues_spec.rb +++ b/spec/issues_spec.rb @@ -68,6 +68,7 @@ describe "Diff::LCS Issues" do describe "issue #60" do it "should produce unified output with correct context" do + # standard:disable Layout/HeredocIndentation old_data = <<-DATA_OLD.strip.split("\n").map(&:chomp) { "name": "x", @@ -93,6 +94,7 @@ describe "Diff::LCS Issues" do + "description": "lo" } EXPECTED + # standard:enable Layout/HeredocIndentation end end @@ -133,6 +135,7 @@ describe "Diff::LCS Issues" do "recipe[q::new]", "recipe[r::new]" ] + # standard:disable Layout/HeredocIndentation expect(diff_lines(old_data, new_data)).to eq(<<-EODIFF) @@ -1,5 +1,4 @@ recipe[a::default] @@ -149,6 +152,7 @@ describe "Diff::LCS Issues" do +recipe[q::new] +recipe[r::new] EODIFF + # standard:enable Layout/HeredocIndentation end end end |