require 'spec_helper' set :os, :family => 'gentoo' describe commands.command_class('package').create do it { should be_an_instance_of(Specinfra::Command::Gentoo::Base::Package) } end describe package('httpd') do it { should be_installed } end describe package('invalid-package') do it { should_not be_installed } end