spec/csl/locale/term_spec.rb in csl-1.0.0.pre21 vs spec/csl/locale/term_spec.rb in csl-1.0.0.pre22

- old
+ new

@@ -10,9 +10,15 @@ it 'returns <terms/> by default' do subject.to_xml.should == '<terms/>' end end + describe '.specialize' do + it 'filters the passed in hash to contain only match-able entries' do + Locale::Term.specialize({ :form => 'short', :foo => 'bar' }).should == { :form => 'short' } + end + end + describe '#ordinalize' do describe "given standard English terms" do let(:en) do Locale::Terms.parse <<-EOS \ No newline at end of file