Class: RSpec::PathMatchers::Options::Mode

Inherits:
FileStatBase show all
Defined in:
lib/rspec/path_matchers/options/mode.rb

Overview

mode:

Class Method Summary collapse

Methods inherited from Base

description, match, validate_expected

Class Method Details

.fetch_actual(path, _failures) ⇒ Object



13
# File 'lib/rspec/path_matchers/options/mode.rb', line 13

def self.fetch_actual(path, _failures) = File.stat(path).mode.to_s(8)[-4..]

.keyObject



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

def self.key = :mode

.stat_attributeObject



11
# File 'lib/rspec/path_matchers/options/mode.rb', line 11

def self.stat_attribute = :mode

.valid_expected_typesObject



12
# File 'lib/rspec/path_matchers/options/mode.rb', line 12

def self.valid_expected_types = [String]