Sha256: 09095f8cf62db3522e083dcc5bf4f9eefb80d1b47a82d69ceadf562f15df2ede
Contents?: true
Size: 974 Bytes
Versions: 8
Compression:
Stored size: 974 Bytes
Contents
require "spec_helper" module Beaker module Options describe OptionsHash do let(:options) { described_class.new } it "supports is_pe?, defaults to pe" do expect(options).to be_is_pe end it "supports is_pe?, respects :type == foss" do options[:type] = 'foss' expect(options).not_to be_is_pe end describe '#get_type' do let(:options) { described_class.new } it 'returns pe as expected in the normal case' do newhash = options.merge({:type => 'pe'}) expect(newhash.get_type).to be === :pe end it 'returns foss as expected in the normal case' do newhash = options.merge({:type => 'foss'}) expect(newhash.get_type).to be === :foss end it 'returns foss as the default' do newhash = options.merge({:type => 'git'}) expect(newhash.get_type).to be === :foss end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems