require File.join(File.dirname(__FILE__), %w[.. .. spec_helper]) describe Feedjira::Parser::GoogleDocsAtomEntry do describe 'parsing' do before do @feed = Feedjira::Parser::GoogleDocsAtom.parse(sample_google_docs_list_feed) @entry = @feed.entries.first end it 'should have the custom checksum element' do expect(@entry.checksum).to eq '2b01142f7481c7b056c4b410d28f33cf' end it 'should have the custom filename element' do expect(@entry.original_filename).to eq "MyFile.pdf" end it 'should have the custom suggested filename element' do expect(@entry.suggested_filename).to eq "TaxDocument.pdf" end end end