Sha256: ce7efbb4cb9608e24e91ecfbe2cfe759e2319caf2e669d7ef92ddcb9097370af

Contents?: true

Size: 610 Bytes

Versions: 6

Compression:

Stored size: 610 Bytes

Contents

require 'spec_helper'

set :os, :family => 'arch'

=begin
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
=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

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 spec/type/arch/package_spec.rb
serverspec-2.0.0.beta18 spec/type/arch/package_spec.rb
serverspec-2.0.0.beta17 spec/type/arch/package_spec.rb
serverspec-2.0.0.beta16 spec/type/arch/package_spec.rb
serverspec-2.0.0.beta15 spec/type/arch/package_spec.rb
serverspec-2.0.0.beta14 spec/type/arch/package_spec.rb