Sha256: ad59a34f72fce9debe11eb797a2c839f7df10f92932c375b1caee6411fba6a39

Contents?: true

Size: 507 Bytes

Versions: 20

Compression:

Stored size: 507 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'RedHat'
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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/redhat/yumrepo_spec.rb
serverspec-0.11.0 spec/redhat/yumrepo_spec.rb
serverspec-0.10.13 spec/redhat/yumrepo_spec.rb
serverspec-0.10.12 spec/redhat/yumrepo_spec.rb
serverspec-0.10.11 spec/redhat/yumrepo_spec.rb
serverspec-0.10.10 spec/redhat/yumrepo_spec.rb
serverspec-0.10.9 spec/redhat/yumrepo_spec.rb
serverspec-0.10.8 spec/redhat/yumrepo_spec.rb
serverspec-0.10.7 spec/redhat/yumrepo_spec.rb
serverspec-0.10.6 spec/redhat/yumrepo_spec.rb
serverspec-0.10.5 spec/redhat/yumrepo_spec.rb
serverspec-0.10.4 spec/redhat/yumrepo_spec.rb
serverspec-0.10.3 spec/redhat/yumrepo_spec.rb
serverspec-0.10.2 spec/redhat/yumrepo_spec.rb
serverspec-0.10.1 spec/redhat/yumrepo_spec.rb
serverspec-0.10.0 spec/redhat/yumrepo_spec.rb
serverspec-0.9.8 spec/redhat/yumrepo_spec.rb
serverspec-0.9.7 spec/redhat/yumrepo_spec.rb
serverspec-0.9.6 spec/redhat/yumrepo_spec.rb
serverspec-0.9.5 spec/redhat/yumrepo_spec.rb