Sha256: fed6060ccdb9f8dca514ba091363025eba4c6b90ece6b2aa613454283baf6075

Contents?: true

Size: 188 Bytes

Versions: 5

Compression:

Stored size: 188 Bytes

Contents

RSpec::Matchers.define :be_directory do
  match do |actual|
    if actual.respond_to?(:directory?)
      actual.directory?
    else
      backend.check_directory(actual)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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