Sha256: 739e11f69b3159f5591bc24210490c46754f072c8777d11a068810a38ad7e16a

Contents?: true

Size: 528 Bytes

Versions: 11

Compression:

Stored size: 528 Bytes

Contents

RSpec::Matchers.define :be_installed do
  match do |subject|
    if subject.class.name == 'Serverspec::Type::SelinuxModule'
      subject.installed?(@version)
    else
      subject.installed?(@provider, @version)
    end
  end

  description do
    message = 'be installed'
    message << %( by "#{@provider}") if @provider
    message << %( with version "#{@version}") if @version
    message
  end

  chain :by do |provider|
    @provider = provider
  end

  chain :with_version do |version|
    @version = version
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
serverspec-2.42.3 lib/serverspec/matcher/be_installed.rb
serverspec-2.42.2 lib/serverspec/matcher/be_installed.rb
serverspec-2.42.1 lib/serverspec/matcher/be_installed.rb
serverspec-cem-acpt-2.42.0 lib/serverspec/matcher/be_installed.rb
serverspec-2.42.0 lib/serverspec/matcher/be_installed.rb
serverspec-2.41.8 lib/serverspec/matcher/be_installed.rb
serverspec-2.41.7 lib/serverspec/matcher/be_installed.rb
serverspec-2.41.6 lib/serverspec/matcher/be_installed.rb
serverspec-2.41.5 lib/serverspec/matcher/be_installed.rb
serverspec-2.41.4 lib/serverspec/matcher/be_installed.rb
serverspec-2.41.3 lib/serverspec/matcher/be_installed.rb