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

15 lines
400 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
require "cmd/command"
RSpec.describe Homebrew::Cmd::Command do
2024-03-21 19:48:13 -07:00
it_behaves_like "parseable arguments"
it "returns the file for a given command", :integration_test do
2017-02-23 06:01:23 +01:00
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