aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_integration_cmds_install.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-26 19:55:50 +0200
committerMarkus Reiter2016-09-26 19:55:50 +0200
commitcd677cf3aed7a0aed91c0f3428091d0fe52c60e9 (patch)
tree9d28026246fb54c7be082da27dc947bdea23211b /Library/Homebrew/test/test_integration_cmds_install.rb
parent7ccc554f7e720fdb71340703ee6d3f7a24c94821 (diff)
downloadbrew-cd677cf3aed7a0aed91c0f3428091d0fe52c60e9.tar.bz2
Speed up `parallel_tests` by splitting integration tests.
Diffstat (limited to 'Library/Homebrew/test/test_integration_cmds_install.rb')
-rw-r--r--Library/Homebrew/test/test_integration_cmds_install.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds_install.rb b/Library/Homebrew/test/test_integration_cmds_install.rb
new file mode 100644
index 000000000..7ce4a3484
--- /dev/null
+++ b/Library/Homebrew/test/test_integration_cmds_install.rb
@@ -0,0 +1,24 @@
+require "integration_cmds_tests"
+
+class IntegrationCommandTestInstall < IntegrationCommandTests
+ def test_install
+ setup_test_formula "testball1"
+ assert_match "Specify `--HEAD`", cmd_fail("install", "testball1", "--head")
+ assert_match "No head is defined", cmd_fail("install", "testball1", "--HEAD")
+ assert_match "No devel block", cmd_fail("install", "testball1", "--devel")
+ assert_match "#{HOMEBREW_CELLAR}/testball1/0.1", cmd("install", "testball1")
+ assert_match "testball1-0.1 already installed", cmd("install", "testball1")
+ assert_match "MacRuby is not packaged", cmd_fail("install", "macruby")
+ assert_match "No available formula", cmd_fail("install", "formula")
+ assert_match "This similarly named formula was found",
+ cmd_fail("install", "testball")
+
+ setup_test_formula "testball2"
+ assert_match "These similarly named formulae were found",
+ cmd_fail("install", "testball")
+
+ install_and_rename_coretap_formula "testball1", "testball2"
+ assert_match "testball1 already installed, it's just not migrated",
+ cmd("install", "testball2")
+ end
+end