Sha256: 88a9a8e921262cdf3d8d05b6b3ef8321350b47455c4463ba096bb607251c4c33
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
require 'spec_helper' describe HSS::Parser do let(:config) { 'spec/test/config.yml' } let(:handler) { HSS::Handler.new config } describe '#expand' do it 'matches keywords in a mapping' do expect(handler.handle('exp_a')).to eql 'exp_alpha' expect(handler.handle('exp_2')).to eql 'exp_beta' end context 'when no match is found' do it 'raises an error' do expect { handler.handle 'exp_c' }.to raise_error NameError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hss-1.1.0 | spec/helpers/expand_spec.rb |