Sha256: 6ec92fd8eada2f4630fe5c219ba0d791e061515f79d6ec7e8a38adad9cad5a3d

Contents?: true

Size: 960 Bytes

Versions: 6

Compression:

Stored size: 960 Bytes

Contents

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

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

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

  describe 'parsing' do
    before do
      @feed = Feedjira::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 Feedjira::Parser::GoogleDocsAtomEntry
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
feedjira-1.3.1 spec/feedjira/parser/google_docs_atom_spec.rb
feedjira-1.3.0 spec/feedjira/parser/google_docs_atom_spec.rb
feedjira-1.2.0 spec/feedjira/parser/google_docs_atom_spec.rb
feedjira-1.1.0 spec/feedjira/parser/google_docs_atom_spec.rb
feedjira-1.0.0 spec/feedjira/parser/google_docs_atom_spec.rb
feedjira-0.9.0 spec/feedjira/parser/google_docs_atom_spec.rb