aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/spec
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-29 11:04:45 +0100
committerMarkus Reiter2016-11-29 11:43:45 +0100
commit0a6cecbaf8697df449bf329180f929264d3af84a (patch)
tree59d53731f82ed294559c1971927f0b03303fd968 /Library/Homebrew/cask/spec
parente0b93f1537248d142b1fad55a4c8777d4d75ec18 (diff)
downloadbrew-0a6cecbaf8697df449bf329180f929264d3af84a.tar.bz2
Fix tests.
Diffstat (limited to 'Library/Homebrew/cask/spec')
-rw-r--r--Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb
index af6973777..fbb117f67 100644
--- a/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb
+++ b/Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb
@@ -26,9 +26,11 @@ describe Hbc::Artifact::Binary do
it "avoids clobbering an existing binary by linking over it" do
FileUtils.touch expected_path
- shutup do
- Hbc::Artifact::Binary.new(cask).install_phase
- end
+ expect {
+ shutup do
+ Hbc::Artifact::Binary.new(cask).install_phase
+ end
+ }.to raise_error(Hbc::CaskError)
expect(expected_path).not_to be :symlink?
end