Sha256: 856af2a316841c6328a107e81f3ee0c07e165367da4232f91d9d55a4a4e0acf3
Contents?: true
Size: 722 Bytes
Versions: 29
Compression:
Stored size: 722 Bytes
Contents
module Spec module Matchers module SpecExtensions class HaveRemotefile < 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 remotefile #{@expected}" end def negative_failure_message "expected #{@target.inspect} not to have remotefile #{@expected}" end def type "remotefile" end end end def have_remotefile(name, extra="") SpecExtensions::HaveRemotefile.new(name, extra) end end end
Version data entries
29 entries across 29 versions & 3 rubygems