aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-09 03:34:35 +0100
committerMarkus Reiter2017-02-10 17:19:19 +0100
commit59668d27108c34499ae8d00dd9354dc57a112de0 (patch)
tree0b666316fafb32f41f6ef7698632d22753c6b78b /Library/Homebrew/cask/test
parent92e2e7a21665aad705d76b90735aed854b7a09f5 (diff)
downloadbrew-59668d27108c34499ae8d00dd9354dc57a112de0.tar.bz2
Convert naked test to spec.
Diffstat (limited to 'Library/Homebrew/cask/test')
-rw-r--r--Library/Homebrew/cask/test/cask/container/naked_test.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/Library/Homebrew/cask/test/cask/container/naked_test.rb b/Library/Homebrew/cask/test/cask/container/naked_test.rb
deleted file mode 100644
index d40c16de5..000000000
--- a/Library/Homebrew/cask/test/cask/container/naked_test.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require "test_helper"
-
-describe Hbc::Container::Naked do
- it "saves files with spaces in them from uris with encoded spaces" do
- cask = Hbc::Cask.new("spacey") do
- url "http://example.com/kevin%20spacey.pkg"
- version "1.2"
- end
-
- path = "/tmp/downloads/kevin-spacey-1.2.pkg"
- expected_destination = cask.staged_path.join("kevin spacey.pkg")
- expected_command = ["/usr/bin/ditto", "--", path, expected_destination]
- Hbc::FakeSystemCommand.stubs_command(expected_command)
-
- container = Hbc::Container::Naked.new(cask, path, Hbc::FakeSystemCommand)
- container.extract
-
- Hbc::FakeSystemCommand.system_calls[expected_command].must_equal 1
- end
-end