Sha256: e629a0b424a87f5ba16b3a9e6d5d68b88358a3efcff7fbd01882c8b7977b759a
Contents?: true
Size: 861 Bytes
Versions: 4
Compression:
Stored size: 861 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[.. spec_helper]) describe Scrapzirra::Injector do let(:feed) do Feedzirra::Parser::Atom.parse(sample_atom_feed) end let(:injector) { Scrapzirra::Injector.new feed} let(:injected_feed) { injector.feed } subject { injected_feed } its(:title) { should eq("Amazon Web Services Blog")} its(:url) { should eq("http://aws.typepad.com/aws/")} describe '.scrap' do its(:"scrap.class") { should be(Scrapzirra::Scrap)} describe '.doc' do subject { injected_feed.scrap.doc } its(:class){ should be(Nokogiri::HTML::Document)} end end describe '.entries' do subject { feed.entries.first } its(:url) { should eq("http://aws.typepad.com/aws/2009/01/aws-job-architect-designer-position-in-turkey.html")} its(:"scrap.class") { should be(Scrapzirra::Scrap)} end end
Version data entries
4 entries across 4 versions & 1 rubygems