diff options
| author | Mike McQuaid | 2017-12-15 09:14:44 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-12-15 09:14:44 +0000 |
| commit | 8ed1425ed7d53b93b5c90f1f340ca3e273d51a86 (patch) | |
| tree | ccd25a863ef5509452510ce6d3bb527c836254b3 /Library/Homebrew/test | |
| parent | 71ebfa76c53408a2fb40cbc95bb6f39be27da6b7 (diff) | |
| download | brew-8ed1425ed7d53b93b5c90f1f340ca3e273d51a86.tar.bz2 | |
tests: don't output seed multiple times.
This clutters up the output. Instead, hide it with a RSpec formatter and
generate and output it ourselves.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/spec_helper.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/test/support/no_seed_progress_formatter.rb | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index 08766ea37..be184b6e0 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -5,6 +5,7 @@ require "rspec/wait" require "rubocop" require "rubocop/rspec/support" require "set" +require "support/no_seed_progress_formatter" if ENV["HOMEBREW_TESTS_COVERAGE"] require "simplecov" diff --git a/Library/Homebrew/test/support/no_seed_progress_formatter.rb b/Library/Homebrew/test/support/no_seed_progress_formatter.rb new file mode 100644 index 000000000..e87a58143 --- /dev/null +++ b/Library/Homebrew/test/support/no_seed_progress_formatter.rb @@ -0,0 +1,7 @@ +require "rspec/core/formatters/progress_formatter" + +class NoSeedProgressFormatter < RSpec::Core::Formatters::ProgressFormatter + RSpec::Core::Formatters.register self, :seed + + def seed(notification); end +end |
