Skip to content

Commit

Permalink
test: diff format changed now in ruby 3+
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Nov 28, 2024
1 parent ed85f93 commit bfc98f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/lib/pact/matchers/unix_diff_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ module Matchers
end

it "generates the right number of lines, even with ActiveSupport loaded" do
expect(line_count).to eq 7 + key_lines_count
expected_line_count = RUBY_VERSION < '3' ? 7 : 8
expect(line_count).to eq expected_line_count + key_lines_count
end
end

Expand All @@ -143,7 +144,8 @@ module Matchers
end

it "generates the right number of lines, even with ActiveSupport loaded" do
expect(line_count).to eq 7 + key_lines_count
expected_line_count = RUBY_VERSION < '3' ? 7 : 8
expect(line_count).to eq expected_line_count + key_lines_count
end

end
Expand Down

0 comments on commit bfc98f8

Please sign in to comment.