From 5ad8ee499ef62e7d862cd9d54963257db4130872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 16 Sep 2022 13:40:32 +0200 Subject: [PATCH] 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. --- bundler/spec/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundler/spec/spec_helper.rb b/bundler/spec/spec_helper.rb index 4f67092bc71a..2f4a1d45e4c6 100644 --- a/bundler/spec/spec_helper.rb +++ b/bundler/spec/spec_helper.rb @@ -58,6 +58,8 @@ def self.ruby=(ruby) config.expect_with :rspec do |c| c.syntax = :expect + + c.max_formatted_output_length = 1000 end config.mock_with :rspec do |mocks|