Class: RSpec::PathMatchers::Options::SymlinkTarget

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

Overview

target:

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/symlink_target.rb', line 13

def self.fetch_actual(path, _failures) = File.readlink(path)

.keyObject



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

def self.key = :target

.normalize_expected_literal(expected) ⇒ Object



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

def self.normalize_expected_literal(expected) = expected.to_s

.valid_expected_typesObject



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

def self.valid_expected_types = [String]