mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
21 lines
483 B
Ruby
21 lines
483 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "cmd/pin"
|
|
require "cmd/shared_examples/args_parse"
|
|
|
|
RSpec.describe Homebrew::Cmd::Pin do
|
|
it_behaves_like "parseable arguments"
|
|
|
|
it "pins a Formula's version", :integration_test do
|
|
install_test_formula "testball"
|
|
|
|
expect { brew "pin", "testball" }.to be_a_success
|
|
end
|
|
|
|
it "fails with an uninstalled Formula", :integration_test do
|
|
setup_test_formula "testball"
|
|
|
|
expect { brew "pin", "testball" }.to be_a_failure
|
|
end
|
|
end
|