Sha256: 05def9760212a124f8bf7102d69b816dbb68b1e7540d9b6ab59adbb8809b84b4

Contents?: true

Size: 965 Bytes

Versions: 13

Compression:

Stored size: 965 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. .. spec_helper])

describe Feedzirra::Parser::GoogleDocsAtom do
  describe '.able_to_parser?' do
    it 'should return true for Google Docs feed' do
      Feedzirra::Parser::GoogleDocsAtom.should be_able_to_parse(sample_google_docs_list_feed)
    end

    it 'should not be able to parse another Atom feed' do
      Feedzirra::Parser::GoogleDocsAtom.should_not be_able_to_parse(sample_atom_feed)
    end
  end

  describe 'parsing' do
    before do
      @feed = Feedzirra::Parser::GoogleDocsAtom.parse(sample_google_docs_list_feed)
    end

    it 'should return a bunch of objects' do
      @feed.entries.should_not be_empty
    end

    it 'should populate a title, interhited from the Atom entry' do
      @feed.title.should_not be_nil
    end

    it 'should return a bunch of entries of type GoogleDocsAtomEntry' do
      @feed.entries.first.should be_a Feedzirra::Parser::GoogleDocsAtomEntry
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
feedzirra-0.7.1 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.7.0 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.6.0 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.5.0 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.4.0 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.3.0 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.2.2 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.2.1 spec/feedzirra/parser/google_docs_atom_spec.rb
codders-feedzirra-0.2.0.rc2 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.2.0.rc2 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.2.0.rc1 spec/feedzirra/parser/google_docs_atom_spec.rb
jashmenn-feedzirra-0.1.3 spec/feedzirra/parser/google_docs_atom_spec.rb
feedzirra-0.1.3 spec/feedzirra/parser/google_docs_atom_spec.rb