31 lines
881 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: false
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew prof" do
it_behaves_like "parseable arguments"
2022-12-30 10:50:35 -08:00
# TODO: consider re-enabling when/if we can make these not flaky.
#
# describe "integration tests", :integration_test, :needs_network do
# after do
# FileUtils.rm_rf HOMEBREW_LIBRARY_PATH/"prof"
# end
2022-12-30 10:50:35 -08:00
# it "works using ruby-prof (the default)" do
# expect { brew "prof", "help", "HOMEBREW_BROWSER" => "echo" }
# .to output(/^Example usage:/).to_stdout
# .and not_to_output.to_stderr
# .and be_a_success
# end
2022-12-30 10:50:35 -08:00
# it "works using stackprof" do
# expect { brew "prof", "--stackprof", "help", "HOMEBREW_BROWSER" => "echo" }
# .to output(/^Example usage:/).to_stdout
# .and not_to_output.to_stderr
# .and be_a_success
# end
# end
end