spec/sample_feeds.rb in feedjira-3.0.0.beta1 vs spec/sample_feeds.rb in feedjira-3.0.0

- old
+ new

@@ -1,7 +1,5 @@ -# rubocop:disable Metrics/LineLength - module SampleFeeds FEEDS = { sample_atom_feed: "AmazonWebServicesBlog.xml", sample_atom_middleman_feed: "FeedjiraBlog.xml", sample_atom_xhtml_feed: "pet_atom.xml", @@ -27,17 +25,16 @@ sample_duplicate_content_atom_feed: "DuplicateContentAtomFeed.xml", sample_youtube_atom_feed: "youtube_atom.xml", sample_atom_xhtml_with_escpaed_html_in_pre_tag_feed: "AtomEscapedHTMLInPreTag.xml", sample_json_feed: "json_feed.json", sample_rss_feed_huffpost_ca: "HuffPostCanada.xml", + sample_invalid_date_format_feed: "InvalidDateFormat.xml" }.freeze FEEDS.each do |method, filename| define_method(method) { load_sample filename } end def load_sample(filename) File.read("#{File.dirname(__FILE__)}/sample_feeds/#{filename}") end end - -# rubocop:enable Metrics/LineLength