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

17 lines
343 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.pin_args" do
it_behaves_like "parseable arguments"
end
describe "brew pin", :integration_test do
it "pins a Formula's version" do
install_test_formula "testball"
2017-07-29 19:55:05 +02:00
expect { brew "pin", "testball" }.to be_a_success
end
end