ruby-changes:73847
From: David <ko1@a...>
Date: Tue, 4 Oct 2022 06:23:06 +0900 (JST)
Subject: [ruby-changes:73847] b2668248b6 (master): [rubygems/rubygems] Make sure RSpec diffs don't omit the different part
https://git.ruby-lang.org/ruby.git/commit/?id=b2668248b6 From b2668248b67b0ac7386d6e153a7cf980306dd4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Fri, 16 Sep 2022 13:40:32 +0200 Subject: [rubygems/rubygems] Make sure RSpec diffs don't omit the different part We sometimes check assertions on lockfile contents, which involves comparing a reasonably long string. Sometimes RSpec is not able to show the part of the string that's actually different, making it hard to figure out the issue. Configuring this setting should fix the issue in most cases. https://github.com/rubygems/rubygems/commit/5ad8ee499e --- spec/bundler/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/bundler/spec_helper.rb b/spec/bundler/spec_helper.rb index 4f67092bc7..2f4a1d45e4 100644 --- a/spec/bundler/spec_helper.rb +++ b/spec/bundler/spec_helper.rb @@ -58,6 +58,8 @@ RSpec.configure do |config| https://github.com/ruby/ruby/blob/trunk/spec/bundler/spec_helper.rb#L58 config.expect_with :rspec do |c| c.syntax = :expect + + c.max_formatted_output_length = 1000 end config.mock_with :rspec do |mocks| -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/