Sha256: 6030e01589e45f0eee99e1dac58db6f5f1d16518170723eed22b47c7b887bffc

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

RSpec::Matchers.define :have_home_directory do |path_to_home|
  match do |user|
    if user.respond_to?(:has_home_directory?)
      user.has_home_directory?(path_to_home)
    else
      backend.check_home_directory(user, path_to_home)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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