mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
test/spec_helper: handle needs_linux.
Add similar logic to that for macOS.
This commit is contained in:
parent
85dd99fa62
commit
1d62067883
@ -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