brew/Library/Homebrew/test/dev-cmd/command_spec.rb

17 lines
419 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 "Homebrew.command_args" do
it_behaves_like "parseable arguments"
end
2017-02-23 06:01:23 +01:00
describe "brew command", :integration_test do
it "returns the file for a given command" do
expect { brew "command", "info" }
2020-11-16 22:18:56 +01:00
.to output(%r{#{Regexp.escape(HOMEBREW_LIBRARY_PATH)}/cmd/info.rb}o).to_stdout
2017-02-23 06:01:23 +01:00
.and be_a_success
end
end