Sha256: e3ad2102b0fc9100f2b6f35368bdbcb2f027d14da47f34f7eec59650d910c3d6

Contents?: true

Size: 921 Bytes

Versions: 5

Compression:

Stored size: 921 Bytes

Contents

require 'spec_helper'

set :os, :family => 'suse'

describe commands.command_class('package').create do
  it { should be_an_instance_of(Specinfra::Command::Suse::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('invalid-package') do
  it { should_not be_installed.by('rpm') }
end

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

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

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

describe package('httpd') do
  let(:stdout) { "2.2.15\n" }
  its(:version) { should eq '2.2.15' }
  its(:version) { should > '2.2.14' }
  its(:version) { should < '2.2.16' }
  its(:version) { should > '2.2.9' }
end

Version data entries

5 entries across 5 versions & 1 rubygems

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