Skip to content

Commit

Permalink
Make sure RSpec diffs don't omit the different part
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deivid-rodriguez committed Oct 3, 2022
1 parent 7e9afc4 commit 5ad8ee4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundler/spec/spec_helper.rb
Expand Up @@ -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|
Expand Down

0 comments on commit 5ad8ee4

Please sign in to comment.