Skip to content

Commit 1ec0ab1

Browse files
committed
Prevent output during test
1 parent 4670254 commit 1ec0ab1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/cli_test.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def test_run(fixture_path, argv)
99
yield if block_given?
1010
cli = TypeProf::CLI::CLI.new(argv)
1111
cli.cli_options[:output] = output
12+
cli.core_options[:display_indicator] = false
1213
cli.run
1314
end
1415
output.string
@@ -104,7 +105,9 @@ def check: -> :ok
104105
assert_equal(exp, test_run("rbs_collection_test", ["test.rb"]) do
105106
lock_path = RBS::Collection::Config.to_lockfile_path(Pathname("rbs_collection.yaml").expand_path)
106107

107-
RBS::Collection::Installer.new(lockfile_path: lock_path).install_from_lockfile
108+
open(IO::NULL, "w") do |null_stdout|
109+
RBS::Collection::Installer.new(lockfile_path: lock_path, stdout: null_stdout).install_from_lockfile
110+
end
108111
end)
109112
end
110113
end

0 commit comments

Comments
 (0)