Class: RSpec::PathMatchers::Options::EtcBase
- Inherits:
-
FileStatBase
- Object
- Base
- FileStatBase
- RSpec::PathMatchers::Options::EtcBase
- Defined in:
- lib/rspec/path_matchers/options/etc_base.rb
Overview
Base class for options that use the Etc module (owner, group)
Direct Known Subclasses
Class Method Summary collapse
-
.match(path, expected, failures) ⇒ Object
Overrides the base match method to first check if the platform supports Etc lookups before proceeding.
- .valid_expected_types ⇒ Object
Methods inherited from Base
description, key, validate_expected
Class Method Details
.match(path, expected, failures) ⇒ Object
Overrides the base match method to first check if the platform supports Etc lookups before proceeding
14 15 16 17 18 19 |
# File 'lib/rspec/path_matchers/options/etc_base.rb', line 14 def self.match(path, expected, failures) # Skip the check entirely if the platform doesn't support it return unless supported_platform? super end |
.valid_expected_types ⇒ Object
10 |
# File 'lib/rspec/path_matchers/options/etc_base.rb', line 10 def self.valid_expected_types = [String] |