Sha256: e6b3edad52e3197bfddaca8c3855873915a3c28aeeafab995dd5ed902ea4e34b

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require 'beaker-hostgenerator/cli'
require 'json'

module BeakerHostGenerator
  describe AbsSupport do
    describe 'extract_templates' do
      it 'Returns a JSON map with template counts' do
        input = ['--templates-only', 'centos6-64m-centos6-64m-redhat7-64m']
        expect( JSON.load(BeakerHostGenerator::CLI.new(input).execute) ).
          to eq({"centos-6-x86_64" => 2, "redhat-7-x86_64" => 1})
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beaker-hostgenerator-0.8.0 spec/beaker-hostgenerator/abs-support_spec.rb
beaker-hostgenerator-0.7.4 spec/beaker-hostgenerator/abs-support_spec.rb