Sha256: 491c640515e564fdfcc8e2212393f62c931c071995a09cb99b19a80b8cb8e1fb

Contents?: true

Size: 601 Bytes

Versions: 6

Compression:

Stored size: 601 Bytes

Contents

require 'spec_helper'

set :os, :family => 'freebsd'

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