Sha256: edc30405cf209c29e25580679a61d439826e24d1de4cb7d92715ef4f0351294c

Contents?: true

Size: 719 Bytes

Versions: 9

Compression:

Stored size: 719 Bytes

Contents

require 'spec_helper'

describe Specinfra::Command::Base do
  after do
    property[:os_by_host] = nil
  end

  context 'family: base, release: nil' do
    before do
      set :os, :family => 'base'
    end
    it { expect(subject.command_class('file')).to be Specinfra::Command::Base::File }
  end

  context 'family: redhat, release: nil' do
    before do
      set :os, :family => 'redhat'
    end
    it { expect(subject.command_class('file')).to be Specinfra::Command::Redhat::Base::File }
  end

  context 'family: redhat, release: 7' do
    before do
      set :os, :family => 'redhat', :release => 7
    end
    xit { expect(subject.command_class('file')).to be Specinfra::Command::Redhat::V7::File }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 spec/command/base_spec.rb
specinfra-2.0.0.beta14 spec/command/base_spec.rb
specinfra-2.0.0.beta13 spec/command/base_spec.rb
specinfra-2.0.0.beta12 spec/command/base_spec.rb
specinfra-2.0.0.beta11 spec/command/base_spec.rb
specinfra-2.0.0.beta10 spec/command/base_spec.rb
specinfra-2.0.0.beta9 spec/command/base_spec.rb
specinfra-2.0.0.beta8 spec/command/base_spec.rb
specinfra-2.0.0.beta7 spec/command/base_spec.rb