aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/dev-cmd/create_spec.rb
blob: 7c85a9f7d16afc7c81fd2fb373beef6499017b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
describe "brew create", :integration_test do
  let(:url) { "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz" }
  let(:formula_file) { CoreTap.new.formula_dir/"testball.rb" }

  it "creates a new Formula file for a given URL" do
    brew "create", url, "HOMEBREW_EDITOR" => "/bin/cat"

    expect(formula_file).to exist
    expect(formula_file.read).to match(%Q(sha256 "#{TESTBALL_SHA256}"))
  end
end