17 lines
374 B
Ruby
17 lines
374 B
Ruby
![]() |
describe "brew unpack", :integration_test do
|
||
|
it "unpacks a given Formula's archive" do
|
||
|
setup_test_formula "testball"
|
||
|
|
||
|
Dir.mktmpdir do |path|
|
||
|
path = Pathname.new(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
|