Merge pull request #6334 from MikeMcQuaid/needs_linux
test/spec_helper: handle needs_linux.
This commit is contained in:
commit
155597d6e7
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user