Merge pull request #6334 from MikeMcQuaid/needs_linux

test/spec_helper: handle needs_linux.
This commit is contained in:
Mike McQuaid 2019-07-28 14:51:59 +01:00 committed by GitHub
commit 155597d6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,10 @@ RSpec.configure do |config|
skip "Needs official command Taps." unless ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"] skip "Needs official command Taps." unless ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"]
end end
config.before(:each, :needs_linux) do
skip "Not on Linux." unless OS.linux?
end
config.before(:each, :needs_macos) do config.before(:each, :needs_macos) do
skip "Not on macOS." unless OS.mac? skip "Not on macOS." unless OS.mac?
end end