Sha256: 125de8669ee0cacea2ca0d283ea57997143fd1f5959463f84fbf30be701c88d5

Contents?: true

Size: 496 Bytes

Versions: 14

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Fedora

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

14 entries across 14 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/fedora/yumrepo_spec.rb
serverspec-1.15.0 spec/fedora/yumrepo_spec.rb
serverspec-1.14.0 spec/fedora/yumrepo_spec.rb
serverspec-1.13.0 spec/fedora/yumrepo_spec.rb
serverspec-1.12.0 spec/fedora/yumrepo_spec.rb
serverspec-1.11.0 spec/fedora/yumrepo_spec.rb
serverspec-1.10.0 spec/fedora/yumrepo_spec.rb
serverspec-1.9.1 spec/fedora/yumrepo_spec.rb
serverspec-1.9.0 spec/fedora/yumrepo_spec.rb
serverspec-1.8.0 spec/fedora/yumrepo_spec.rb
serverspec-1.7.1 spec/fedora/yumrepo_spec.rb
serverspec-1.7.0 spec/fedora/yumrepo_spec.rb
serverspec-1.6.0 spec/fedora/yumrepo_spec.rb
serverspec-1.5.0 spec/fedora/yumrepo_spec.rb