Sha256: 6569c4a5a35d883de0b43d6f61cbf83e83ddf2a669feb4bd711fe4635c1e0711
Contents?: true
Size: 811 Bytes
Versions: 16
Compression:
Stored size: 811 Bytes
Contents
require 'spec_helper' describe 'create_command_class work correctly' do after do property[:os_by_host] = nil end context 'family: base, release: nil' do before do set :os, :family => 'base' end it { expect(Specinfra::Command::Base.create_command_class('file')).to eq Specinfra::Command::Base::File } end context 'family: redhat, release: nil' do before do set :os, :family => 'redhat' end it { expect(Specinfra::Command::Base.create_command_class('file')).to eq Specinfra::Command::Redhat::Base::File } end context 'family: redhat, release: 7' do before do set :os, :family => 'redhat', :release => 7 end it { expect(Specinfra::Command::Base.create_command_class('file')).to eq Specinfra::Command::Redhat::V7::File } end end
Version data entries
16 entries across 16 versions & 1 rubygems