Sha256: d220ef3358359a78cc71afddc276ff498d836a99dc5162a99a101e66d0dd8a4b

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

require 'spec_helper'

set :os, :family => 'darwin'

describe commands.command_class('package').create do
  it { should be_an_instance_of(Specinfra::Command::Darwin::Base::Package) }
end

describe package('httpd') do
  it { should be_installed }
end

describe package('invalid-package') do
  it { should_not be_installed }
end

describe package('httpd') do
  it { should be_installed.with_version('2.2.15-28.el6') }
end

describe package('httpd') do
  it { should_not be_installed.with_version('invalid-version') }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/darwin/package_spec.rb
serverspec-2.0.0.beta12 spec/type/darwin/package_spec.rb
serverspec-2.0.0.beta11 spec/type/darwin/package_spec.rb
serverspec-2.0.0.beta10 spec/type/darwin/package_spec.rb
serverspec-2.0.0.beta9 spec/type/darwin/package_spec.rb