test/spec_helper: handle needs_linux.

Add similar logic to that for macOS.
This commit is contained in:
Mike McQuaid 2019-07-28 14:11:29 +01:00
parent 85dd99fa62
commit 1d62067883
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

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