Class: RSpec::PathMatchers::Matchers::SymlinkMatcher
- Defined in:
- lib/rspec/path_matchers/matchers/symlink_matcher.rb
Overview
An RSpec matcher that checks for the existence and properties of a symlink
Constant Summary collapse
- OPTIONS =
[ RSpec::PathMatchers::Options::SymlinkAtime, RSpec::PathMatchers::Options::SymlinkBirthtime, RSpec::PathMatchers::Options::SymlinkCtime, RSpec::PathMatchers::Options::SymlinkGroup, RSpec::PathMatchers::Options::SymlinkMtime, RSpec::PathMatchers::Options::SymlinkOwner, RSpec::PathMatchers::Options::SymlinkTarget, RSpec::PathMatchers::Options::SymlinkTargetExist, RSpec::PathMatchers::Options::SymlinkTargetType ].freeze
Instance Attribute Summary
Attributes inherited from Base
#base_path, #entry_name, #failures, #matcher_name, #options, #path
Instance Method Summary collapse
Methods inherited from Base
#description, #does_not_match?, #failure_message, #failure_message_when_negated, #initialize, #matches?
Constructor Details
This class inherits a constructor from RSpec::PathMatchers::Matchers::Base
Instance Method Details
#correct_type? ⇒ Boolean
27 |
# File 'lib/rspec/path_matchers/matchers/symlink_matcher.rb', line 27 def correct_type? = File.symlink?(path) |
#entry_type ⇒ Object
23 |
# File 'lib/rspec/path_matchers/matchers/symlink_matcher.rb', line 23 def entry_type = :symlink |
#option_definitions ⇒ Object
25 |
# File 'lib/rspec/path_matchers/matchers/symlink_matcher.rb', line 25 def option_definitions = OPTIONS |