Sha256: 66fc21c6b4159b6ca9f39a7ba53452e14aff7067f8ba328b68e101e437e5564e

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

require 'spec_helper'

describe HSS::Parser do
  let(:config) { 'spec/test/config.yml' }
  let(:handler) { HSS::Handler.new config }

  describe '#default' do
    it 'uses the provided value if set' do
      expect(handler.handle 'def_77').to eql 'chose_77'
    end
    it 'uses the default if the value is unset' do
      expect(handler.handle 'def_').to eql 'chose_10'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hss-1.0.1 spec/helpers/default_spec.rb
hss-1.0.0 spec/helpers/default_spec.rb
hss-0.2.11 spec/helpers/default_spec.rb
hss-0.2.10 spec/helpers/default_spec.rb
hss-0.2.9 spec/helpers/default_spec.rb
hss-0.2.8 spec/helpers/default_spec.rb
hss-0.2.6 spec/helpers/default_spec.rb
hss-0.2.5 spec/helpers/default_spec.rb