require 'spec_helper' set :os, :family => 'redhat' describe commands.command_class('yumrepo').create do it { should be_an_instance_of(Specinfra::Command::Redhat::Base::Yumrepo) } end describe 'Serverspec yumrepo matchers of Red Hat family' do describe 'exist' do describe yumrepo('epel') do it { should exist } end describe yumrepo('invalid-repository') do it { should_not exist } end end describe 'be_enabled' do describe yumrepo('epel') do it { should be_enabled } end describe yumrepo('invalid-repository') do it { should_not be_enabled } end end end