Class: RSpec::PathMatchers::Options::SymlinkTargetExist
- Defined in:
- lib/rspec/path_matchers/options/symlink_target_exist.rb
Overview
target_exist:
Class Method Summary collapse
-
.fetch_actual(path, _failures) ⇒ Object
rubocop:disable Naming/PredicateMethod.
- .key ⇒ Object
- .valid_expected_types ⇒ Object
Methods inherited from Base
description, match, validate_expected
Class Method Details
.fetch_actual(path, _failures) ⇒ Object
rubocop:disable Naming/PredicateMethod
13 14 15 |
# File 'lib/rspec/path_matchers/options/symlink_target_exist.rb', line 13 def self.fetch_actual(path, _failures) # rubocop:disable Naming/PredicateMethod File.exist?(File.(File.readlink(path), File.dirname(path))) end |
.key ⇒ Object
10 |
# File 'lib/rspec/path_matchers/options/symlink_target_exist.rb', line 10 def self.key = :target_exist |
.valid_expected_types ⇒ Object
11 |
# File 'lib/rspec/path_matchers/options/symlink_target_exist.rb', line 11 def self.valid_expected_types = [TrueClass, FalseClass] |