Sha256: 61a86158ad07755ccf203bfedc4c6ce5fe11ccd3a44d44e5a49cfb61dd32932a

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

RSpec::Matchers.define :have_login_shell do |path_to_shell|
  match do |user|
    if user.respond_to?(:has_login_shell?)
      user.has_login_shell?(path_to_shell)
    else
      backend.check_login_shell(user, path_to_shell)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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