Sha256: a7d5c8c45a070f86ccab10dcf9d4eb0c871b70a9dcab2ca2007de178e6672d67

Contents?: true

Size: 387 Bytes

Versions: 81

Compression:

Stored size: 387 Bytes

Contents

require 'map'

describe 'getting defaults from map' do
  subject do
    Map.options my_key: 456, dir: 'abc'
  end
  it 'should contain :my_key' do
    expect(subject.getopt :my_key).to be 456
  end
  it 'should contain :my_key with #get' do
    expect(subject.get :my_key).to be 456
  end
  it 'should allow defaults' do
    expect(subject.getopt(:doesntexist, 333)).to be 333
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
albacore-2.0.4 spec/utils_spec.rb