Sha256: 7c3e0884c11511af21e5cddfcf4a4b4baa138e71f54d94cb63ff0893ef54a30c

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

require 'spec_helper'

set :os, :family => 'freebsd', :release => 10

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

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/freebsd10/package_spec.rb
serverspec-2.0.0.beta18 spec/type/freebsd10/package_spec.rb
serverspec-2.0.0.beta17 spec/type/freebsd10/package_spec.rb
serverspec-2.0.0.beta16 spec/type/freebsd10/package_spec.rb
serverspec-2.0.0.beta15 spec/type/freebsd10/package_spec.rb
serverspec-2.0.0.beta14 spec/type/freebsd10/package_spec.rb