aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index 8c1278cbe..298485b3c 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -43,6 +43,10 @@ class IntegrationCommandTests < Homebrew::TestCase
end
end
+ def needs_osx
+ skip "Not on OS X" unless OS.mac?
+ end
+
def cmd_id_from_args(args)
args_pretty = args.join(" ").gsub(TEST_TMPDIR, "@TMPDIR@")
test_pretty = "#{self.class.name}\##{name}.#{@cmd_id_index += 1}"
@@ -654,12 +658,14 @@ class IntegrationCommandTests < Homebrew::TestCase
def test_cask
needs_test_cmd_taps
+ needs_osx
setup_remote_tap("caskroom/cask")
cmd("cask", "list")
end
def test_services
needs_test_cmd_taps
+ needs_osx
setup_remote_tap("homebrew/services")
assert_equal "Warning: No services available to control with `brew services`",
cmd("services", "list")