spec/citeproc/ruby/renderer/layout_spec.rb in citeproc-ruby-1.0.3 vs spec/citeproc/ruby/renderer/layout_spec.rb in citeproc-ruby-1.0.4
- old
+ new
@@ -13,25 +13,25 @@
i.data = CiteProc::Item.new(:id => 'ID-1')
i
}
it 'returns an empty string when empty' do
- renderer.render(item, node).should == ''
+ expect(renderer.render(item, node)).to eq('')
end
describe 'with child nodes' do
before(:each) do
node << CSL::Style::Text.new(:value => 'foo')
node << CSL::Style::Text.new(:value => 'bar')
end
it 'renders each child' do
- renderer.render(item, node).should == 'foobar'
+ expect(renderer.render(item, node)).to eq('foobar')
end
it 'uses the delimiters if specified' do
node[:delimiter] = '-'
- renderer.render(item, node).should == 'foo-bar'
+ expect(renderer.render(item, node)).to eq('foo-bar')
end
end
end