Sha256: 1c351ede1184cde614589901481f44eb9c886e176d86a53211fbf58986bdc558

Contents?: true

Size: 263 Bytes

Versions: 15

Compression:

Stored size: 263 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(example, user, path_to_home)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.5.2 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.5.1 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.5.0 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.14 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.13 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.12 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.11 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.10 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.9 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.8 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.7 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.6 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.5 lib/serverspec/matchers/have_home_directory.rb
serverspec-0.4.4 lib/serverspec/matchers/have_home_directory.rb