Sha256: a6e49b0be78c3ba74899a8f863fe6643fdf9dfbb0423c4aad9602c96bbbca927

Contents?: true

Size: 527 Bytes

Versions: 85

Compression:

Stored size: 527 Bytes

Contents

require 'spec_helper'

set :os, :family => 'redhat'

describe package('httpd') do
  it { should 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 be_installed.by('rpm').with_version('2.2.15-28.el6') }
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

85 entries across 85 versions & 4 rubygems

Version Path
serverspec-2.38.0 spec/type/redhat/package_spec.rb
serverspec-2.37.2 spec/type/redhat/package_spec.rb
serverspec-2.37.1 spec/type/redhat/package_spec.rb
serverspec-2.37.0 spec/type/redhat/package_spec.rb
serverspec-2.36.1 spec/type/redhat/package_spec.rb
serverspec-2.36.0 spec/type/redhat/package_spec.rb
serverspec-2.35.0 spec/type/redhat/package_spec.rb
serverspec-2.34.0 spec/type/redhat/package_spec.rb
serverspec-2.33.0 spec/type/redhat/package_spec.rb
serverspec-2.32.0 spec/type/redhat/package_spec.rb
serverspec-2.31.1 spec/type/redhat/package_spec.rb
serverspec-2.31.0 spec/type/redhat/package_spec.rb
serverspec-2.30.1 spec/type/redhat/package_spec.rb
serverspec-2.30.0 spec/type/redhat/package_spec.rb
serverspec-2.29.2 spec/type/redhat/package_spec.rb
serverspec-2.29.1 spec/type/redhat/package_spec.rb
serverspec-2.29.0 spec/type/redhat/package_spec.rb
serverspec-2.28.0 spec/type/redhat/package_spec.rb
serverspec-2.27.0 spec/type/redhat/package_spec.rb
serverspec-2.26.0 spec/type/redhat/package_spec.rb