mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 06:57:24 +08:00

Sometimes you may have a large string or object that you are comparing with some expectation, and you want to see the full diff between actual and expected without rspec truncating 90% of the diff. Setting the max_formatted_output_length to nil disables this truncation completely. c.f. https://www.rubydoc.info/gems/rspec-expectations/RSpec/Expectations/Configuration#max_formatted_output_length=-instance_method Use `RSPEC_DISABLE_DIFF_TRUNCATION=1` to disable this.