Permalink
Browse files

Add test for cask failed installation.

  • Loading branch information...
1 parent c5ebe45 commit 1feabd046482bcfd2e0a3ac8453526b3480ea53f @rejeep rejeep committed Nov 14, 2013
Showing with 13 additions and 1 deletion.
  1. +13 −1 features/error-reporting.feature
  2. BIN servant/packages/dep-0.0.6.tar
View
14 features/error-reporting.feature
@@ -32,4 +32,16 @@ Feature: Error Reporting
"""
/Cask:4:19: Invalid read syntax: ")"
"""
-
+
+ Scenario: Installation failure (dep dependency does not exist)
+ Given this Cask file:
+ """
+ (source "localhost" "http://127.0.0.1:9191/packages/")
+
+ (depends-on "dep")
+ """
+ When I run cask "install"
+ Then I should see command error:
+ """
+ Dependency dep failed to install: Package `invalid-0.0.1' is unavailable
+ """
View
BIN servant/packages/dep-0.0.6.tar
Binary file not shown.

0 comments on commit 1feabd0

Please sign in to comment.