aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd/unpack_spec.rb
blob: 9b2b801bc1f6b3571397976ff014f7e24eba0a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
describe "brew unpack", :integration_test do
  it "unpacks a given Formula's archive" do
    setup_test_formula "testball"

    mktmpdir do |path|
      shutup do
        expect { brew "unpack", "testball", "--destdir=#{path}" }
          .to be_a_success
      end

      expect(path/"testball-0.1").to be_a_directory
    end
  end
end