spec/lib/xommelier/atom/entry_spec.rb in xommelier-0.1.31 vs spec/lib/xommelier/atom/entry_spec.rb in xommelier-0.1.32
- old
+ new
@@ -10,16 +10,16 @@
describe Xommelier::Atom::Entry do
describe 'instance' do
subject { Xommelier::Atom::Entry.new }
[:id, :title, :updated].each do |must_field|
- it { should respond_to(must_field) }
+ it { is_expected.to respond_to(must_field) }
end
[:content, :published, :rights, :source, :summary].each do |may_field|
- it { should respond_to(may_field) }
+ it { is_expected.to respond_to(may_field) }
end
%w(author category contributor link).each do |any_field|
- it { should respond_to(any_field) }
- it('have plural methods for embedded collections') { should respond_to(any_field.pluralize) }
+ it { is_expected.to respond_to(any_field) }
+ it('have plural methods for embedded collections') { is_expected.to respond_to(any_field.pluralize) }
end
end
end