Sha256: 29b2d11e36dd6da8d10145452cadf39ab6c65b8c3a70a1edca240cc3fe29e8f1
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
require "spec_helper" module Excise describe "Base" do context 'patterned string' do subject { Base.new(string, pattern).parse } let(:string) { '[this] (patterned) <STRING>' } let(:pattern) { '[{first}] ({second}) <{third}>' } it { should be_a Hash } its(:keys) { should eq [:first, :second, :third] } its(:values) { should eq ['this', 'patterned', 'STRING'] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
excise-0.1.1 | spec/excise/base_spec.rb |
excise-0.1.0 | spec/excise/base_spec.rb |