summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-09-16 13:40:32 +0200
committergit <svn-admin@ruby-lang.org>2022-10-04 06:22:50 +0900
commitb2668248b67b0ac7386d6e153a7cf980306dd4db (patch)
tree72399b6c62e6b051434a854f6b1a4193add61738
parentefc77662440bd7d31381f7e62fbd813c38d6c64c (diff)
downloadruby-b2668248b67b0ac7386d6e153a7cf980306dd4db.tar.gz
[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
-rw-r--r--spec/bundler/spec_helper.rb2
1 files changed, 2 insertions, 0 deletions
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|
config.expect_with :rspec do |c|
c.syntax = :expect
+
+ c.max_formatted_output_length = 1000
end
config.mock_with :rspec do |mocks|