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

15 lines
407 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
2024-03-19 11:50:53 -07:00
require "dev-cmd/command"
2024-03-19 11:50:53 -07:00
RSpec.describe Homebrew::DevCmd::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