Class: RSpec::PathMatchers::Options::SymlinkTargetExist

Inherits:
Base
  • Object
show all
Defined in:
lib/rspec/path_matchers/options/symlink_target_exist.rb

Overview

target_exist:

Class Method Summary collapse

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.expand_path(File.readlink(path), File.dirname(path)))
end

.keyObject



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

def self.key = :target_exist

.valid_expected_typesObject



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

def self.valid_expected_types = [TrueClass, FalseClass]