spec_helper: don't truncate output expectations.

It's really useful to be able to see the full output particularly when
a backtrace is in it.
This commit is contained in:
Mike McQuaid 2018-05-24 14:28:20 +01:00
parent 0c216bc5b8
commit 4c365ea353

View File

@ -43,9 +43,14 @@ RSpec.configure do |config|
config.filter_run_when_matching :focus
config.expect_with :rspec do |c|
c.max_formatted_output_length = nil
end
# TODO when https://github.com/rspec/rspec-expectations/pull/1056 makes
# it into a stable release:
# config.expect_with :rspec do |c|
# c.max_formatted_output_length = 200
# end
# Never truncate output objects.
RSpec::Support::ObjectFormatter.default_instance.max_formatted_output_length = nil
config.include(FileUtils)