We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 818f8d6 commit 4ac6992Copy full SHA for 4ac6992
2 files changed
spec/octocatalog-diff/tests/cli_spec.rb
@@ -39,7 +39,7 @@
39
expect(result).to eq(0)
40
expect(logger_str.string).not_to match(/DEBUG/)
41
42
- logger_str.truncate(0)
+ logger, logger_str = OctocatalogDiff::Spec.setup_logger
43
result2 = OctocatalogDiff::Cli.cli(default_argv.dup, logger, debug: true)
44
expect(result2).to eq(0)
45
expect(logger_str.string).to match(/DEBUG -- : Generating colored text output/)
spec/octocatalog-diff/tests/spec_helper.rb
@@ -45,7 +45,10 @@ def initialize
end
46
47
def string
48
- @content ||= File.read(File.join(@log_tempdir, 'customlogger.out'))
+ @content ||= begin
49
+ content = File.read(File.join(@log_tempdir, 'customlogger.out'))
50
+ content.sub(/\A# Logfile created .+\n/, '')
51
+ end
52
53
54
0 commit comments