<commit_before>require "test_helper"

describe Hbc::CLI::Reinstall do
  it "allows reinstalling a Cask" do
    Hbc::CLI::Install.run("local-transmission")
    Hbc.load("local-transmission").must_be :installed?
    Hbc::CLI::Reinstall.run("local-transmission")
    Hbc.load("local-transmission").must_be :installed?
  end

  it "allows reinstalling a non installed Cask" do
    Hbc::CLI::Uninstall.run("local-transmission")
    Hbc.load("local-transmission").wont_be :installed?
    Hbc::CLI::Reinstall.run("local-transmission")
    Hbc.load("local-transmission").must_be :installed?
  end
end<commit_msg>Fix code coverage issue by introducing shutup blocks<commit_after>require "test_helper"

describe Hbc::CLI::Reinstall do
  it "allows reinstalling a Cask" do
    shutup do
      Hbc::CLI::Install.run("local-transmission")
    end
    Hbc.load("local-transmission").must_be :installed?

    shutup do
      Hbc::CLI::Reinstall.run("local-transmission")
    end
    Hbc.load("local-transmission").must_be :installed?
  end

  it "allows reinstalling a non installed Cask" do
    shutup do
      Hbc::CLI::Uninstall.run("local-transmission")
    end
    Hbc.load("local-transmission").wont_be :installed?

    shutup do
      Hbc::CLI::Reinstall.run("local-transmission")
    end
    Hbc.load("local-transmission").must_be :installed?
  end
end
{'fraction_non_alphanumeric': 0.13234200743494423, 'fraction_numerical': 0.0, 'mean_word_length': 4.341269841269841, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3430269', 'n_tokens_mistral': 471, 'n_tokens_neox': 448, 'n_words': 86}