Skip to content

Commit

Permalink
Merge pull request #9225 from radeksimko/binarydir-fix
Browse files Browse the repository at this point in the history
Add test for creating binarydir if it doesn't exist
  • Loading branch information
ndr committed Jan 25, 2015
2 parents bdf4578 + 226da2f commit 9b7fa81
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/cask/artifact/binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,14 @@

Hbc.no_binaries = false
end

it "creates parent directory if it doesn't exist" do
FileUtils.rmdir Hbc.binarydir

shutup do
Hbc::Artifact::Binary.new(cask).install_phase
end

expect(expected_path.exist?).to be true
end
end

0 comments on commit 9b7fa81

Please sign in to comment.