Sha256: 5ea641aaf43d9ff937cfbc7867ec683aa2f61419fd657828bf986f5d75b3adf5
Contents?: true
Size: 704 Bytes
Versions: 29
Compression:
Stored size: 704 Bytes
Contents
module Spec module Matchers module SpecExtensions class HaveSymlink < SpecExtensionsBase def initialize(expected,extra="") @expected = expected @extra = extra end def matches?(target) @target = target is_present? end def failure_message "expected #{@target.inspect} to have symlink #{@expected}" end def negative_failure_message "expected #{@target.inspect} not to have symlink #{@expected}" end def type "symlink" end end end def have_symlink(name, extra="") SpecExtensions::HaveSymlink.new(name, extra) end end end
Version data entries
29 entries across 29 versions & 3 rubygems