spec/functional/xommelier/rss/rss/parsing_spec.rb in xommelier-0.1.31 vs spec/functional/xommelier/rss/rss/parsing_spec.rb in xommelier-0.1.32
- old
+ new
@@ -12,11 +12,11 @@
describe 'RSS feed' do
describe 'parsing' do
let(:rss_xml) { load_xml_file('feed.rss2.0') }
subject(:feed) { Xommelier::RSS::Rss.parse(rss_xml) }
- it { should be_kind_of(Xommelier::RSS::Rss) }
+ it { is_expected.to be_kind_of(Xommelier::RSS::Rss) }
its(:title) { should == 'Liftoff News' }
its(:last_build_date) { should == Time.utc(2003, 6, 10, 9, 41, 01) }
its(:pub_date) { should == Time.utc(2003, 6, 10, 04) }
its(:description) { should == 'Liftoff to Space Exploration.' }
@@ -25,10 +25,10 @@
its(:description) { should == 'Liftoff to Space Exploration.' }
its(:generator) { should == 'Weblog Editor 2.0' }
its(:managing_editor) { should == 'editor@example.com' }
its(:web_master) { should == 'webmaster@example.com' }
- it { feed.should have(4).items }
+ it { expect(feed.items.size).to eq(4) }
describe 'Item' do
subject(:item) { feed.items[0] }
its(:guid) { should be_an Xommelier::RSS::Guid }
its('guid.text') { should == 'http://liftoff.msfc.nasa.gov/2003/06/03.html#item573' }