Sha256: 6f48ef0c609e5a8b21586c56954fed1495f775b6b840767d8e893ffcebc1b2f6

Contents?: true

Size: 1.47 KB

Versions: 4

Compression:

Stored size: 1.47 KB

Contents

require "rubygems"
require "spec"

# gem install redgreen for colored test output
begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end

path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)

require "lib/feedzirra"

def sample_atom_feed
  File.read("#{File.dirname(__FILE__)}/sample_feeds/AmazonWebServicesBlog.xml")
end

def sample_atom_entry_content
  File.read("#{File.dirname(__FILE__)}/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml")
end

def sample_rdf_feed
  File.read("#{File.dirname(__FILE__)}/sample_feeds/HREFConsideredHarmful.xml")
end

def sample_rdf_entry_content
  File.read("#{File.dirname(__FILE__)}/sample_feeds/HREFConsideredHarmfulFirstEntry.xml")
end

def sample_rss_feed_burner_feed
  File.read("#{File.dirname(__FILE__)}/sample_feeds/SamHarrisAuthorPhilosopherEssayistAtheist.xml")
end

def sample_rss_feed
  File.read("#{File.dirname(__FILE__)}/sample_feeds/TenderLovemaking.xml")
end

def sample_rss_entry_content
  File.read("#{File.dirname(__FILE__)}/sample_feeds/TenderLovemakingFirstEntry.xml")
end

def sample_feedburner_atom_feed
  File.read("#{File.dirname(__FILE__)}/sample_feeds/PaulDixExplainsNothing.xml")
end

def sample_feedburner_atom_entry_content
  File.read("#{File.dirname(__FILE__)}/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml")
end

def sample_google_news_atom_feed
  File.read("#{File.dirname(__FILE__)}/sample_feeds/GoogleNewsSearch.xml")
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jeffrafter-feedzirra-0.0.4 spec/spec_helper.rb
somezack-feedzirra-0.0.4 spec/spec_helper.rb
somezack-feedzirra-0.0.5 spec/spec_helper.rb
somezack-feedzirra-0.0.6 spec/spec_helper.rb