Class: RSpec::PathMatchers::Options::Mode
Overview
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..]
|
.key ⇒ Object
10
|
# File 'lib/rspec/path_matchers/options/mode.rb', line 10
def self.key = :mode
|
.stat_attribute ⇒ Object
11
|
# File 'lib/rspec/path_matchers/options/mode.rb', line 11
def self.stat_attribute = :mode
|
.valid_expected_types ⇒ Object
12
|
# File 'lib/rspec/path_matchers/options/mode.rb', line 12
def self.valid_expected_types = [String]
|