Sha256: a1d1005f37fa14ba5c2fba87c4e21ab2292ea3c543a709d9d4b7b155b2b744d6

Contents?: true

Size: 254 Bytes

Versions: 15

Compression:

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

Version data entries

15 entries across 15 versions & 1 rubygems

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