Sha256: 3257482f4a8ef274a818a134b5873fbc5dfc65f108c058276edd353d672673c3
Contents?: true
Size: 1.77 KB
Versions: 2
Compression:
Stored size: 1.77 KB
Contents
begin require 'simplecov' require 'json' SimpleCov.start do add_filter "/spec/" end rescue LoadError end require File.expand_path(File.dirname(__FILE__) + '/../lib/feedjira') def load_sample(filename) File.read("#{File.dirname(__FILE__)}/sample_feeds/#{filename}") end def sample_atom_feed load_sample("AmazonWebServicesBlog.xml") end def sample_atom_xhtml_feed load_sample("pet_atom.xml") end def sample_atom_feed_line_breaks load_sample("AtomFeedWithSpacesAroundEquals.xml") end def sample_atom_entry_content load_sample("AmazonWebServicesBlogFirstEntryContent.xml") end def sample_itunes_feed load_sample("itunes.xml") end def sample_itunes_feed_with_spaces load_sample("ITunesWithSpacesInAttributes.xml") end def sample_rdf_feed load_sample("HREFConsideredHarmful.xml") end def sample_rdf_entry_content load_sample("HREFConsideredHarmfulFirstEntry.xml") end def sample_rss_feed_burner_feed load_sample("TechCrunch.xml") end def sample_rss_feed_burner_entry_content load_sample("TechCrunchFirstEntry.xml") end def sample_rss_feed_burner_entry_description load_sample("TechCrunchFirstEntryDescription.xml") end def sample_rss_feed load_sample("TenderLovemaking.xml") end def sample_rss_entry_content load_sample("TenderLovemakingFirstEntry.xml") end def sample_feedburner_atom_feed load_sample("PaulDixExplainsNothing.xml") end def sample_feedburner_atom_entry_content load_sample("PaulDixExplainsNothingFirstEntryContent.xml") end def sample_wfw_feed load_sample("PaulDixExplainsNothingWFW.xml") end def sample_google_docs_list_feed load_sample("GoogleDocsList.xml") end RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
feedjira-1.0.0 | spec/spec_helper.rb |
feedjira-0.9.0 | spec/spec_helper.rb |