Sha256: 39979100bc850e7bb359ca702faa17938f8d7c891f8a656ec3ce25d1b80525db

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/redhat/yumrepo_spec.rb
serverspec-2.0.0.beta12 spec/type/redhat/yumrepo_spec.rb
serverspec-2.0.0.beta11 spec/type/redhat/yumrepo_spec.rb
serverspec-2.0.0.beta10 spec/type/redhat/yumrepo_spec.rb
serverspec-2.0.0.beta9 spec/type/redhat/yumrepo_spec.rb