1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
require 'spec_helper'
set :os, :family => 'debian'
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('apt').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
|