Skip to content
Snippets Groups Projects
Commit 1f9faa09 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2128 from reitermarkus/spec-unpack

Convert `brew unpack` test to spec.
parents 6a2693ba be498acf
No related branches found
No related tags found
No related merge requests found
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
require "testing_env"
class IntegrationCommandTestUnpack < IntegrationCommandTestCase
def test_unpack
setup_test_formula "testball"
mktmpdir do |path|
cmd "unpack", "testball", "--destdir=#{path}"
assert File.directory?("#{path}/testball-0.1"),
"The tarball should be unpacked"
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment