spec/citeproc/abbreviate_spec.rb in citeproc-1.0.0 vs spec/citeproc/abbreviate_spec.rb in citeproc-1.0.1
- old
+ new
@@ -24,9 +24,14 @@
end
end
end
describe '#abbreviate' do
+ it 'looks up abbreviations in the default namespace by default' do
+ subject.abbreviate(:title, 'foo').should == nil
+ subject.abbreviations[:default][:title] = { 'foo' => 'bar' }
+ subject.abbreviate(:title, 'foo').should == 'bar'
+ end
end
end
-end
\ No newline at end of file
+end