Merge pull request #4205 from MikeMcQuaid/spec_helper_no_truncate
spec_helper: don't truncate output expectations.
This commit is contained in:
commit
d38a977fd1
@ -38,6 +38,7 @@ module Homebrew
|
||||
ENV.delete("VERBOSE")
|
||||
ENV.delete("HOMEBREW_CASK_OPTS")
|
||||
ENV.delete("HOMEBREW_TEMP")
|
||||
ENV.delete("HOMEBREW_LINKAGE_CACHE")
|
||||
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
|
||||
ENV["HOMEBREW_DEVELOPER"] = "1"
|
||||
ENV["HOMEBREW_NO_COMPAT"] = "1" if args.no_compat?
|
||||
|
@ -40,13 +40,13 @@ class LinkageChecker
|
||||
end
|
||||
|
||||
def display_test_output(puts_output: true)
|
||||
display_items "Missing libraries", @broken_dylibs, puts_output: puts_output
|
||||
display_items "Broken dependencies", @broken_deps, puts_output: puts_output
|
||||
display_items "Missing libraries", broken_dylibs, puts_output: puts_output
|
||||
display_items "Broken dependencies", broken_deps, puts_output: puts_output
|
||||
puts "No broken library linkage" unless broken_library_linkage?
|
||||
end
|
||||
|
||||
def broken_library_linkage?
|
||||
!@broken_dylibs.empty? || !@broken_deps.empty?
|
||||
!broken_dylibs.empty? || !broken_deps.empty?
|
||||
end
|
||||
|
||||
def undeclared_deps
|
||||
|
@ -43,6 +43,15 @@ RSpec.configure do |config|
|
||||
|
||||
config.filter_run_when_matching :focus
|
||||
|
||||
# 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)
|
||||
|
||||
config.include(RuboCop::RSpec::ExpectOffense)
|
||||
|
Loading…
x
Reference in New Issue
Block a user