spec/citeproc/item_spec.rb in citeproc-1.0.2 vs spec/citeproc/item_spec.rb in citeproc-1.0.3
- old
+ new
@@ -3,11 +3,11 @@
module CiteProc
describe Item do
describe '.new' do
- it { should_not be nil }
+ it { is_expected.not_to be nil }
it 'creates number variables for number fields' do
expect(Item.new(:edition => 23).edition).to be_a(Number)
end
@@ -30,10 +30,10 @@
expect(v).to eq('42')
end
end
describe '#empty' do
- it { should be_empty }
+ it { is_expected.to be_empty }
it 'returns false when there is at least one variable in the item' do
expect(Item.new(:title => 'foo')).not_to be_empty
end
end