mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
0c216bc5b8
commit
4c365ea353
@ -43,9 +43,14 @@ RSpec.configure do |config|
|
|||||||
|
|
||||||
config.filter_run_when_matching :focus
|
config.filter_run_when_matching :focus
|
||||||
|
|
||||||
config.expect_with :rspec do |c|
|
# TODO when https://github.com/rspec/rspec-expectations/pull/1056 makes
|
||||||
c.max_formatted_output_length = nil
|
# it into a stable release:
|
||||||
end
|
# 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)
|
config.include(FileUtils)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user