Class: RSpec::PathMatchers::Options::EtcBase

Inherits:
FileStatBase show all
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

Group, Owner, SymlinkGroup, SymlinkOwner

Class Method Summary collapse

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_typesObject



10
# File 'lib/rspec/path_matchers/options/etc_base.rb', line 10

def self.valid_expected_types = [String]