Sha256: 69ad38eaaefe3fd35cbc6f555fa32e168173c5af9468a98e83eb4ad6fb457372

Contents?: true

Size: 168 Bytes

Versions: 5

Compression:

Stored size: 168 Bytes

Contents

RSpec::Matchers.define :be_file do
  match do |actual|
    if actual.respond_to?(:file?)
      actual.file?
    else
      backend.check_file(actual)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.5.8 lib/serverspec/matchers/be_file.rb
serverspec-0.5.7 lib/serverspec/matchers/be_file.rb
serverspec-0.5.6 lib/serverspec/matchers/be_file.rb
serverspec-0.5.5 lib/serverspec/matchers/be_file.rb
serverspec-0.5.4 lib/serverspec/matchers/be_file.rb