repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/services_spec.rb
Library/Homebrew/test/cmd/services_spec.rb
# frozen_string_literal: true require "cmd/services" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Services, :needs_daemon_manager do it_behaves_like "parseable arguments" it "allows controlling services", :integration_test do expect { brew "services", "list" } .to not_to_outpu...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/command-not-found-init_spec.rb
Library/Homebrew/test/cmd/command-not-found-init_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/command-not-found-init" RSpec.describe Homebrew::Cmd::CommandNotFoundInit do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/fetch_spec.rb
Library/Homebrew/test/cmd/fetch_spec.rb
# frozen_string_literal: true require "cmd/fetch" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::FetchCmd do it_behaves_like "parseable arguments" it "downloads the Formula's URL", :integration_test do setup_test_formula "testball" expect { brew "fetch", "testball" }.to be_a_succ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/upgrade_spec.rb
Library/Homebrew/test/cmd/upgrade_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/upgrade" require "cmd/shared_examples/reinstall_pkgconf_if_needed" RSpec.describe Homebrew::Cmd::UpgradeCmd do include FileUtils it_behaves_like "parseable arguments" it "upgrades a Formula", :integration_test do formula_n...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/commands_spec.rb
Library/Homebrew/test/cmd/commands_spec.rb
# frozen_string_literal: true require "cmd/commands" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::CommandsCmd do it_behaves_like "parseable arguments" it "prints a list of all available commands", :integration_test do expect { brew "commands" } .to output(/Built-in commands/)....
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/list_spec.rb
Library/Homebrew/test/cmd/list_spec.rb
# frozen_string_literal: true require "cmd/list" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::List do let(:formulae) { %w[bar foo qux] } it_behaves_like "parseable arguments" it "prints all installed formulae", :integration_test do formulae.each do |f| (HOMEBREW_CELLAR/f/"1...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/docs_spec.rb
Library/Homebrew/test/cmd/docs_spec.rb
# frozen_string_literal: true require "cmd/docs" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Docs do it_behaves_like "parseable arguments" it "opens the docs page", :integration_test do expect { brew "docs", "HOMEBREW_BROWSER" => "echo" } .to output("https://docs.brew.sh\n")....
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/tap-info_spec.rb
Library/Homebrew/test/cmd/tap-info_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/tap-info" RSpec.describe Homebrew::Cmd::TapInfo do it_behaves_like "parseable arguments" it "gets information for a given Tap", :integration_test, :needs_network do setup_test_tap expect { brew "tap-info", "--json=v1", "...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/link_spec.rb
Library/Homebrew/test/cmd/link_spec.rb
# frozen_string_literal: true require "cmd/link" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Link do it_behaves_like "parseable arguments" it "links a given Formula", :integration_test do setup_test_formula "testball", tab_attributes: { installed_on_request: true } Formula["tes...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/developer_spec.rb
Library/Homebrew/test/cmd/developer_spec.rb
# frozen_string_literal: true require "cmd/developer" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Developer do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/casks_spec.rb
Library/Homebrew/test/cmd/casks_spec.rb
# frozen_string_literal: true RSpec.describe "brew casks", type: :system do it "prints all installed Casks", :integration_test do expect { brew_sh "casks" } .to be_a_success .and not_to_output.to_stderr end end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/help_spec.rb
Library/Homebrew/test/cmd/help_spec.rb
# frozen_string_literal: true require "cmd/help" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::HelpCmd, :integration_test do it_behaves_like "parseable arguments" describe "help" do it "prints help for a documented Ruby command" do expect { brew "help", "cat" } .to outp...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/tap_spec.rb
Library/Homebrew/test/cmd/tap_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/tap" RSpec.describe Homebrew::Cmd::TapCmd do it_behaves_like "parseable arguments" it "taps a given Tap", :integration_test do path = setup_test_tap expect { brew "tap", "homebrew/bar", path/".git" } .to output(/Ta...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/setup-ruby_spec.rb
Library/Homebrew/test/cmd/setup-ruby_spec.rb
# frozen_string_literal: true RSpec.describe "brew setup-ruby", type: :system do it "installs and configures Homebrew's Ruby", :integration_test do expect { brew_sh "setup-ruby" } .to output("").to_stdout .and not_to_output.to_stderr .and be_a_success end end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/custom-external-command_spec.rb
Library/Homebrew/test/cmd/custom-external-command_spec.rb
# frozen_string_literal: true RSpec.describe "brew custom-external-command", :integration_test, type: :system do it "is supported" do mktmpdir do |path| cmd = "custom-external-command-#{rand}" file = path/"brew-#{cmd}" file.write <<~SH #!/bin/sh echo 'I am #{cmd}.' SH ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/update-report_spec.rb
Library/Homebrew/test/cmd/update-report_spec.rb
# frozen_string_literal: true require "cmd/update-report" require "formula_versions" require "yaml" require "cmd/shared_examples/args_parse" require "cmd/shared_examples/reinstall_pkgconf_if_needed" RSpec.describe Homebrew::Cmd::UpdateReport do it_behaves_like "parseable arguments" it_behaves_like "reinstall_pkg...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/shellenv_spec.rb
Library/Homebrew/test/cmd/shellenv_spec.rb
# frozen_string_literal: true RSpec.describe "brew shellenv", type: :system do it "prints export statements", :integration_test do expect { brew_sh "shellenv" } .to output(/.*/).to_stdout .and not_to_output.to_stderr .and be_a_success end end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/cleanup_spec.rb
Library/Homebrew/test/cmd/cleanup_spec.rb
# frozen_string_literal: true require "cmd/cleanup" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::CleanupCmd do before do FileUtils.mkdir_p HOMEBREW_LIBRARY/"Homebrew/vendor/" FileUtils.touch HOMEBREW_LIBRARY/"Homebrew/vendor/portable-ruby-version" end after do FileUtils.rm...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/readall_spec.rb
Library/Homebrew/test/cmd/readall_spec.rb
# frozen_string_literal: true require "cmd/readall" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::ReadallCmd do it_behaves_like "parseable arguments" it "imports all Formulae for a given Tap", :integration_test do formula_file = setup_test_formula "testball" alias_file = CoreTap...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/--env_spec.rb
Library/Homebrew/test/cmd/--env_spec.rb
# frozen_string_literal: true require "cmd/--env" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Env do it_behaves_like "parseable arguments" describe "--shell=bash", :integration_test do it "prints the Homebrew build environment variables in Bash syntax" do expect { brew "--env...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/alias_spec.rb
Library/Homebrew/test/cmd/alias_spec.rb
# frozen_string_literal: true require "cmd/alias" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Alias do it_behaves_like "parseable arguments" it "sets an alias", :integration_test do expect { brew "alias", "foo-test=bar" } .to not_to_output.to_stdout .and not_to_output.t...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/uninstall_spec.rb
Library/Homebrew/test/cmd/uninstall_spec.rb
# frozen_string_literal: true require "cmd/uninstall" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::UninstallCmd do it_behaves_like "parseable arguments" it "uninstalls a given Formula", :integration_test do setup_test_formula "testball", tab_attributes: { installed_on_request: true ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/log_spec.rb
Library/Homebrew/test/cmd/log_spec.rb
# frozen_string_literal: true require "cmd/log" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Log do it_behaves_like "parseable arguments" it "shows the Git log for a given Formula", :integration_test do setup_test_formula "testball" core_tap = CoreTap.instance core_tap.path...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/config_spec.rb
Library/Homebrew/test/cmd/config_spec.rb
# frozen_string_literal: true require "cmd/config" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Config do it_behaves_like "parseable arguments" it "prints information about the current Homebrew configuration", :integration_test do expect { brew "config" } .to output(/HOMEBREW_...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/which-formula_spec.rb
Library/Homebrew/test/cmd/which-formula_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/which-formula" RSpec.describe Homebrew::Cmd::WhichFormula do it_behaves_like "parseable arguments" describe "which_formula" do before do # Override DATABASE_FILE to use test environment's HOMEBREW_CACHE test_db_fi...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/postinstall_spec.rb
Library/Homebrew/test/cmd/postinstall_spec.rb
# frozen_string_literal: true require "cmd/postinstall" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Postinstall do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/outdated_spec.rb
Library/Homebrew/test/cmd/outdated_spec.rb
# frozen_string_literal: true require "cmd/outdated" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Outdated do it_behaves_like "parseable arguments" it "outputs JSON", :integration_test do setup_test_formula "testball" (HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath expected_j...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/unlink_spec.rb
Library/Homebrew/test/cmd/unlink_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/unlink" RSpec.describe Homebrew::Cmd::UnlinkCmd do it_behaves_like "parseable arguments" it "unlinks a Formula", :integration_test do install_test_formula "testball" expect { brew "unlink", "testball" } .to output(...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/info_spec.rb
Library/Homebrew/test/cmd/info_spec.rb
# frozen_string_literal: true require "cmd/info" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Info do RSpec::Matchers.define :a_json_string do match do |actual| JSON.parse(actual) true rescue JSON::ParserError false end end it_behaves_like "parseable argu...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/untap_spec.rb
Library/Homebrew/test/cmd/untap_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "cmd/untap" RSpec.describe Homebrew::Cmd::Untap do let(:class_instance) { described_class.new(%w[arg1]) } it_behaves_like "parseable arguments" it "untaps a given Tap", :integration_test do setup_test_tap expect { brew "un...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/home_spec.rb
Library/Homebrew/test/cmd/home_spec.rb
# frozen_string_literal: true require "cmd/home" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Home do let(:testballhome_homepage) do Formula["testballhome"].homepage end let(:local_caffeine_path) do cask_path("local-caffeine") end let(:local_caffeine_homepage) do Cask...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/missing_spec.rb
Library/Homebrew/test/cmd/missing_spec.rb
# frozen_string_literal: true require "cmd/missing" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::Missing do it_behaves_like "parseable arguments" it "prints missing dependencies", :integration_test, :no_api do setup_test_formula "foo" setup_test_formula "bar" (HOMEBREW_CELL...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/options_spec.rb
Library/Homebrew/test/cmd/options_spec.rb
# frozen_string_literal: true require "cmd/options" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::Cmd::OptionsCmd do it_behaves_like "parseable arguments" it "prints a given Formula's options", :integration_test do setup_test_formula "testball", <<~RUBY depends_on "bar" => :recommen...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/shared_examples/reinstall_pkgconf_if_needed.rb
Library/Homebrew/test/cmd/shared_examples/reinstall_pkgconf_if_needed.rb
# typed: false # frozen_string_literal: true require "reinstall" require "formula_installer" RSpec.shared_examples "reinstall_pkgconf_if_needed" do context "when running on macOS", :needs_macos do describe ".reinstall_pkgconf_if_needed!" do let(:formula) { instance_double(Formula) } let(:formula_ins...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/cmd/shared_examples/args_parse.rb
Library/Homebrew/test/cmd/shared_examples/args_parse.rb
# frozen_string_literal: true RSpec.shared_examples "parseable arguments" do |command_name: nil| let(:command) do |example| example.metadata.dig(:example_group, :parent_example_group, :description) end it "can parse arguments" do if described_class klass = described_class else # for test...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/livecheck_spec.rb
Library/Homebrew/test/livecheck/livecheck_spec.rb
# frozen_string_literal: true require "livecheck/livecheck" RSpec.describe Homebrew::Livecheck do subject(:livecheck) { described_class } let(:cask_url) { "https://brew.sh/test-0.0.1.dmg" } let(:head_url) { "https://github.com/Homebrew/brew.git" } let(:homepage_url) { "https://brew.sh" } let(:livecheck_url...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/skip_conditions_spec.rb
Library/Homebrew/test/livecheck/skip_conditions_spec.rb
# frozen_string_literal: true require "livecheck/livecheck" require "livecheck/skip_conditions" RSpec.describe Homebrew::Livecheck::SkipConditions do subject(:skip_conditions) { described_class } let(:formulae) do { basic: formula("test") do desc "Test formula" homepage "h...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy_spec.rb
Library/Homebrew/test/livecheck/strategy_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy do subject(:strategy) { described_class } let(:url) { "https://brew.sh/" } let(:redirection_url) { "https://brew.sh/redirection" } let(:post_hash) do { empty: "", boolean: "true", ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/livecheck_version_spec.rb
Library/Homebrew/test/livecheck/livecheck_version_spec.rb
# frozen_string_literal: true require "livecheck/livecheck_version" RSpec.describe Homebrew::Livecheck::LivecheckVersion do let(:formula) { instance_double(Formula) } let(:cask) { instance_double(Cask::Cask) } let(:resource) { instance_double(Resource) } before do # Case statements use #=== for case equa...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/options_spec.rb
Library/Homebrew/test/livecheck/options_spec.rb
# frozen_string_literal: true require "livecheck/options" RSpec.describe Homebrew::Livecheck::Options do subject(:options) { described_class } let(:cookies) { { "cookie_key" => "cookie_value" } } let(:header_string) { "Accept: */*" } let(:referer_url) { "https://example.com/referer" } let(:post_hash) do ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/npm_spec.rb
Library/Homebrew/test/livecheck/strategy/npm_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Npm do subject(:npm) { described_class } let(:npm_urls) do { typical: "https://registry.npmjs.org/abc/-/def-1.2.3.tgz", org_scoped: "https://registry.npmjs.org/@example/abc/-/def-1.2.3.tgz"...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/electron_builder_spec.rb
Library/Homebrew/test/livecheck/strategy/electron_builder_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::ElectronBuilder do subject(:electron_builder) { described_class } let(:http_url) { "https://www.example.com/example/latest-mac.yml" } let(:non_http_url) { "ftp://brew.sh/" } let(:regex) { /Example[._-]v?...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/extract_plist_spec.rb
Library/Homebrew/test/livecheck/strategy/extract_plist_spec.rb
# frozen_string_literal: true require "livecheck/strategy" require "bundle_version" RSpec.describe Homebrew::Livecheck::Strategy::ExtractPlist do subject(:extract_plist) { described_class } let(:http_url) { "https://brew.sh/blog/" } let(:non_http_url) { "ftp://brew.sh/" } let(:items) do { "first" ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/xml_spec.rb
Library/Homebrew/test/livecheck/strategy/xml_spec.rb
# frozen_string_literal: true require "livecheck/strategy" require "rexml/document" RSpec.describe Homebrew::Livecheck::Strategy::Xml do subject(:xml) { described_class } let(:http_url) { "https://brew.sh/blog/" } let(:non_http_url) { "ftp://brew.sh/" } let(:regex) { /^v?(\d+(?:\.\d+)+)$/i } let(:content...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/apache_spec.rb
Library/Homebrew/test/livecheck/strategy/apache_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Apache do subject(:apache) { described_class } let(:apache_urls) do { version_dir: "https://www.apache.org/dyn/closer.lua?path=abc/1.2.3/def-1.2.3.tar.gz", version_dir_root:...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/pypi_spec.rb
Library/Homebrew/test/livecheck/strategy/pypi_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Pypi do subject(:pypi) { described_class } let(:pypi_url) { "https://files.pythonhosted.org/packages/ab/cd/efg/example-package-1.2.3.tar.gz" } let(:non_pypi_url) { "https://brew.sh/test" } let(:regex) { ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/crate_spec.rb
Library/Homebrew/test/livecheck/strategy/crate_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Crate do subject(:crate) { described_class } let(:crate_url) { "https://static.crates.io/crates/example/example-0.1.0.crate" } let(:non_crate_url) { "https://brew.sh/test" } let(:regex) { /^v?(\d+(?:\.\d...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/git_spec.rb
Library/Homebrew/test/livecheck/strategy/git_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Git do subject(:git) { described_class } let(:git_url) { "https://github.com/Homebrew/brew.git" } let(:non_git_url) { "https://brew.sh/test" } let(:tags) do { normal: ["brew/1.2", "brew/1.2.1"...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb
Library/Homebrew/test/livecheck/strategy/bitbucket_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Bitbucket do subject(:bitbucket) { described_class } let(:bitbucket_urls) do { get: "https://bitbucket.org/abc/def/get/1.2.3.tar.gz", downloads: "https://bitbucket.org/abc/def/downloads/...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/hackage_spec.rb
Library/Homebrew/test/livecheck/strategy/hackage_spec.rb
# frozen_string_literal: true require "livecheck/strategy/hackage" RSpec.describe Homebrew::Livecheck::Strategy::Hackage do subject(:hackage) { described_class } let(:hackage_urls) do { package: "https://hackage.haskell.org/package/abc-1.2.3/abc-1.2.3.tar.gz", downloads: "https://downloads.hask...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/gnome_spec.rb
Library/Homebrew/test/livecheck/strategy/gnome_spec.rb
# frozen_string_literal: true require "livecheck/strategy/gnome" RSpec.describe Homebrew::Livecheck::Strategy::Gnome do subject(:gnome) { described_class } let(:gnome_url) { "https://download.gnome.org/sources/abc/1.2/abc-1.2.3.tar.xz" } let(:non_gnome_url) { "https://brew.sh/test" } let(:generated) do ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/header_match_spec.rb
Library/Homebrew/test/livecheck/strategy/header_match_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::HeaderMatch do subject(:header_match) { described_class } let(:http_url) { "https://brew.sh/blog/" } let(:non_http_url) { "ftp://brew.sh/" } let(:versions) do versions = { content_disposition: ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/page_match_spec.rb
Library/Homebrew/test/livecheck/strategy/page_match_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::PageMatch do subject(:page_match) { described_class } let(:http_url) { "https://brew.sh/blog/" } let(:non_http_url) { "ftp://brew.sh/" } let(:regex) { %r{href=.*?/homebrew[._-]v?(\d+(?:\.\d+)+)/?["' >]}i...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/github_releases_spec.rb
Library/Homebrew/test/livecheck/strategy/github_releases_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::GithubReleases do subject(:github_releases) { described_class } let(:github_urls) do { release_artifact: "https://github.com/abc/def/releases/download/1.2.3/ghi-1.2.3.tar.gz", tag_archive: ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/xorg_spec.rb
Library/Homebrew/test/livecheck/strategy/xorg_spec.rb
# frozen_string_literal: true require "livecheck/strategy/xorg" RSpec.describe Homebrew::Livecheck::Strategy::Xorg do subject(:xorg) { described_class } let(:xorg_urls) do { app: "https://www.x.org/archive/individual/app/abc-1.2.3.tar.bz2", font: "https://www.x.org/archive/individu...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/sparkle_spec.rb
Library/Homebrew/test/livecheck/strategy/sparkle_spec.rb
# frozen_string_literal: true require "livecheck/strategy" require "bundle_version" RSpec.describe Homebrew::Livecheck::Strategy::Sparkle do subject(:sparkle) { described_class } def create_appcast_xml(items_str = "") <<~EOS <?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:dc="http...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb
Library/Homebrew/test/livecheck/strategy/launchpad_spec.rb
# frozen_string_literal: true require "livecheck/strategy/launchpad" RSpec.describe Homebrew::Livecheck::Strategy::Launchpad do subject(:launchpad) { described_class } let(:launchpad_urls) do { version_dir: "https://launchpad.net/abc/1.2/1.2.3/+download/abc-1.2.3.tar.gz", trunk: "http...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/cpan_spec.rb
Library/Homebrew/test/livecheck/strategy/cpan_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Cpan do subject(:cpan) { described_class } let(:cpan_urls) do { no_subdirectory: "https://cpan.metacpan.org/authors/id/H/HO/HOMEBREW/Brew-v1.2.3.tar.gz", with_subdirectory: "https://...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/github_latest_spec.rb
Library/Homebrew/test/livecheck/strategy/github_latest_spec.rb
# frozen_string_literal: true require "livecheck/strategy/github_releases" require "livecheck/strategy/github_latest" RSpec.describe Homebrew::Livecheck::Strategy::GithubLatest do subject(:github_latest) { described_class } let(:github_urls) do { release_artifact: "https://github.com/abc/def/releases/...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb
Library/Homebrew/test/livecheck/strategy/sourceforge_spec.rb
# frozen_string_literal: true require "livecheck/strategy/sourceforge" RSpec.describe Homebrew::Livecheck::Strategy::Sourceforge do subject(:sourceforge) { described_class } let(:sourceforge_urls) do { typical: "https://downloads.sourceforge.net/project/abc/def-1.2.3.tar.gz", rss: ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb
Library/Homebrew/test/livecheck/strategy/gnu_spec.rb
# frozen_string_literal: true require "livecheck/strategy/gnu" RSpec.describe Homebrew::Livecheck::Strategy::Gnu do subject(:gnu) { described_class } let(:gnu_urls) do { no_version_dir: "https://ftpmirror.gnu.org/gnu/abc/abc-1.2.3.tar.gz", software_page: "https://www.gnu.org/software/abc/", ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/json_spec.rb
Library/Homebrew/test/livecheck/strategy/json_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Json do subject(:json) { described_class } let(:http_url) { "https://brew.sh/blog/" } let(:non_http_url) { "ftp://brew.sh/" } let(:regex) { /^v?(\d+(?:\.\d+)+)$/i } let(:content) do <<~EOS {...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/livecheck/strategy/yaml_spec.rb
Library/Homebrew/test/livecheck/strategy/yaml_spec.rb
# frozen_string_literal: true require "livecheck/strategy" RSpec.describe Homebrew::Livecheck::Strategy::Yaml do subject(:yaml) { described_class } let(:http_url) { "https://brew.sh/blog/" } let(:non_http_url) { "ftp://brew.sh/" } let(:regex) { /^v?(\d+(?:\.\d+)+)$/i } let(:content) do <<~EOS v...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/options/deprecated_option_spec.rb
Library/Homebrew/test/options/deprecated_option_spec.rb
# frozen_string_literal: true require "options" RSpec.describe DeprecatedOption do subject(:option) { described_class.new("foo", "bar") } specify "#old" do expect(option.old).to eq("foo") end specify "#old_flag" do # rubocop:todo RSpec/AggregateExamples expect(option.old_flag).to eq("--foo") end ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/options/option_spec.rb
Library/Homebrew/test/options/option_spec.rb
# frozen_string_literal: true require "options" RSpec.describe Option do subject(:option) { described_class.new("foo") } specify "#to_s" do expect(option.to_s).to eq("--foo") end specify "equality" do foo = described_class.new("foo") bar = described_class.new("bar") expect(option).to eq(foo)...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/version/parser_spec.rb
Library/Homebrew/test/version/parser_spec.rb
# frozen_string_literal: true require "version/parser" RSpec.describe Version::Parser do specify "::new" do expect { described_class.new } .to raise_error("Version::Parser is declared as abstract; it cannot be instantiated") end describe Version::RegexParser do specify "::new" do expect { d...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/sorbet/tapioca/config_spec.rb
Library/Homebrew/test/sorbet/tapioca/config_spec.rb
# frozen_string_literal: true require "bundler" require "yaml" RSpec.describe "Tapioca Config", type: :system do let(:config) { YAML.load_file(File.join(__dir__, "../../../sorbet/tapioca/config.yml")) } it "only excludes dependencies" do exclusions = config.dig("gem", "exclude") dependencies = Bundler::D...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/update-sponsors_spec.rb
Library/Homebrew/test/dev-cmd/update-sponsors_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/update-sponsors" RSpec.describe Homebrew::DevCmd::UpdateSponsors do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/pr-pull_spec.rb
Library/Homebrew/test/dev-cmd/pr-pull_spec.rb
# frozen_string_literal: true require "dev-cmd/pr-pull" require "utils/git" require "tap" require "cmd/shared_examples/args_parse" RSpec.describe Homebrew::DevCmd::PrPull do include FileUtils let(:pr_pull) { described_class.new(["foo"]) } let(:formula_rebuild) do <<~EOS class Foo < Formula de...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/update-test_spec.rb
Library/Homebrew/test/dev-cmd/update-test_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/update-test" RSpec.describe Homebrew::DevCmd::UpdateTest do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/generate-cask-api_spec.rb
Library/Homebrew/test/dev-cmd/generate-cask-api_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/generate-cask-api" RSpec.describe Homebrew::DevCmd::GenerateCaskApi do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/style_spec.rb
Library/Homebrew/test/dev-cmd/style_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/style" RSpec.describe Homebrew::DevCmd::StyleCmd do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/update-python-resources_spec.rb
Library/Homebrew/test/dev-cmd/update-python-resources_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/update-python-resources" RSpec.describe Homebrew::DevCmd::UpdatePythonResources do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/pr-automerge_spec.rb
Library/Homebrew/test/dev-cmd/pr-automerge_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/pr-automerge" RSpec.describe Homebrew::DevCmd::PrAutomerge do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/ruby_spec.rb
Library/Homebrew/test/dev-cmd/ruby_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/ruby" RSpec.describe Homebrew::DevCmd::Ruby do it_behaves_like "parseable arguments" it "executes ruby code with Homebrew's libraries loaded", :integration_test do expect { brew "ruby", "-e", "exit 0" } .to be_a_suc...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/generate-analytics-api_spec.rb
Library/Homebrew/test/dev-cmd/generate-analytics-api_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/generate-analytics-api" RSpec.describe Homebrew::DevCmd::GenerateAnalyticsApi do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/generate-cask-ci-matrix_spec.rb
Library/Homebrew/test/dev-cmd/generate-cask-ci-matrix_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/generate-cask-ci-matrix" RSpec.describe Homebrew::DevCmd::GenerateCaskCiMatrix do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/sh_spec.rb
Library/Homebrew/test/dev-cmd/sh_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/sh" RSpec.describe Homebrew::DevCmd::Sh do it_behaves_like "parseable arguments" it "runs a shell with the Homebrew environment", :integration_test do expect { brew "sh", "SHELL" => which("true") } .to output(/Your ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/livecheck_spec.rb
Library/Homebrew/test/dev-cmd/livecheck_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/livecheck" RSpec.describe Homebrew::DevCmd::LivecheckCmd do it_behaves_like "parseable arguments" it "reports the latest version of a Formula", :integration_test, :needs_network do content = <<~RUBY desc "Some test"...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/irb_spec.rb
Library/Homebrew/test/dev-cmd/irb_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/irb" RSpec.describe Homebrew::DevCmd::Irb do it_behaves_like "parseable arguments" describe "integration test" do let(:history_file) { Pathname("#{Dir.home}/.brew_irb_history") } after do history_file.delete if...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/linkage_spec.rb
Library/Homebrew/test/dev-cmd/linkage_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/linkage" RSpec.describe Homebrew::DevCmd::Linkage do it_behaves_like "parseable arguments" it "works when no arguments are provided", :integration_test do setup_test_formula "testball" (HOMEBREW_CELLAR/"testball/0.0.1...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/prof_spec.rb
Library/Homebrew/test/dev-cmd/prof_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/prof" RSpec.describe Homebrew::DevCmd::Prof do it_behaves_like "parseable arguments" describe "integration tests", :integration_test, :needs_network do after do FileUtils.rm_rf HOMEBREW_LIBRARY_PATH/"prof" end ...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/update-maintainers_spec.rb
Library/Homebrew/test/dev-cmd/update-maintainers_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/update-maintainers" RSpec.describe Homebrew::DevCmd::UpdateMaintainers do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/dispatch-build-bottle_spec.rb
Library/Homebrew/test/dev-cmd/dispatch-build-bottle_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/dispatch-build-bottle" RSpec.describe Homebrew::DevCmd::DispatchBuildBottle do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/unpack_spec.rb
Library/Homebrew/test/dev-cmd/unpack_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/unpack" RSpec.describe Homebrew::DevCmd::Unpack do it_behaves_like "parseable arguments" it "unpacks a given Formula's archive", :integration_test do setup_test_formula "testball" mktmpdir do |path| expect { br...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/tap-new_spec.rb
Library/Homebrew/test/dev-cmd/tap-new_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/tap-new" RSpec.describe Homebrew::DevCmd::TapNew do it_behaves_like "parseable arguments" it "initializes a new tap with a README file and GitHub Actions CI", :integration_test do # To ensure that Utils::Git.setup_gpg! do...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/bump-unversioned-casks_spec.rb
Library/Homebrew/test/dev-cmd/bump-unversioned-casks_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/bump-unversioned-casks" RSpec.describe Homebrew::DevCmd::BumpUnversionedCasks do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/update-license-data_spec.rb
Library/Homebrew/test/dev-cmd/update-license-data_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/update-license-data" RSpec.describe Homebrew::DevCmd::UpdateLicenseData do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/which-update_spec.rb
Library/Homebrew/test/dev-cmd/which-update_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/which-update" RSpec.describe Homebrew::DevCmd::WhichUpdate do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/verify_spec.rb
Library/Homebrew/test/dev-cmd/verify_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/verify" RSpec.describe Homebrew::DevCmd::Verify do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/tests_spec.rb
Library/Homebrew/test/dev-cmd/tests_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/tests" RSpec.describe Homebrew::DevCmd::Tests do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/create_spec.rb
Library/Homebrew/test/dev-cmd/create_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/create" RSpec.describe Homebrew::DevCmd::Create do let(:url) { "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz" } let(:formula_file) { CoreTap.instance.new_formula_path("testball") } it_behaves_like "parseable argumen...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb
Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/bump-cask-pr" RSpec.describe Homebrew::DevCmd::BumpCaskPr do subject(:bump_cask_pr) { described_class.new(["test"]) } let(:newest_macos) { MacOSVersion.new(HOMEBREW_MACOS_NEWEST_SUPPORTED).to_sym } let(:c) do Cask::Cas...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/formula_spec.rb
Library/Homebrew/test/dev-cmd/formula_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/formula" RSpec.describe Homebrew::DevCmd::FormulaCmd do it_behaves_like "parseable arguments" it "prints a given Formula's path", :integration_test do formula_file = setup_test_formula "testball" expect { brew "formu...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/typecheck_spec.rb
Library/Homebrew/test/dev-cmd/typecheck_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/typecheck" RSpec.describe Homebrew::DevCmd::Typecheck do it_behaves_like "parseable arguments" describe "#trim_rubocop_rbi" do let(:rbi_file) { Pathname.new("#{TEST_FIXTURE_DIR}/rubocop@x.x.x.rbi") } let(:typecheck) {...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/generate-formula-api_spec.rb
Library/Homebrew/test/dev-cmd/generate-formula-api_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/generate-formula-api" RSpec.describe Homebrew::DevCmd::GenerateFormulaApi do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/bottle_spec.rb
Library/Homebrew/test/dev-cmd/bottle_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/bottle" RSpec.describe Homebrew::DevCmd::Bottle do def stub_hash(parameters) <<~EOS { "#{parameters[:name]}":{ "formula":{ "pkg_version":"#{parameters[:version]}", "path":...
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/bump-formula-pr_spec.rb
Library/Homebrew/test/dev-cmd/bump-formula-pr_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/bump-formula-pr" RSpec.describe Homebrew::DevCmd::BumpFormulaPr do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/generate-man-completions_spec.rb
Library/Homebrew/test/dev-cmd/generate-man-completions_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/generate-man-completions" RSpec.describe Homebrew::DevCmd::GenerateManCompletions do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false
Homebrew/brew
https://github.com/Homebrew/brew/blob/fe0a384e3a04605192726c149570fbe33a8996b0/Library/Homebrew/test/dev-cmd/contributions_spec.rb
Library/Homebrew/test/dev-cmd/contributions_spec.rb
# frozen_string_literal: true require "cmd/shared_examples/args_parse" require "dev-cmd/contributions" RSpec.describe Homebrew::DevCmd::Contributions do it_behaves_like "parseable arguments" end
ruby
BSD-2-Clause
fe0a384e3a04605192726c149570fbe33a8996b0
2026-01-04T15:37:27.366412Z
false