begin require 'simplecov' SimpleCov.start do add_filter "/spec/" end rescue LoadError end require 'rspec/its' require File.expand_path(File.dirname(__FILE__) + '/../lib/scrapzirra') require '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_entry_content load_sample("AmazonWebServicesBlogFirstEntryContent.xml") end RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus end