Sha256: b7a6829bea5dfccf2145909fc6c4fcfd18f0aac58b7dd264a1a1a91583720863

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::RedHat

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta8 spec/type/yumrepo_spec.rb
serverspec-2.0.0.beta7 spec/type/yumrepo_spec.rb
serverspec-2.0.0.beta6 spec/type/yumrepo_spec.rb
serverspec-2.0.0.beta5 spec/type/yumrepo_spec.rb
serverspec-2.0.0.beta4 spec/type/yumrepo_spec.rb
serverspec-2.0.0.beta3 spec/type/yumrepo_spec.rb