Sha256: 5dcb856f05b32ec236d8f4cc0a446b54f8998dae78c95453c492ecba80024a4e
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
require "rubygems" require "spec" require 'mocha' Spec::Runner.configure do |config| config.mock_with(:mocha) end require File.join(File.dirname(__FILE__), %w[.. lib feedzirra]) unless defined?(Feedzirra) 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 def sample_itunes_feed load_sample("itunes.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("SamHarrisAuthorPhilosopherEssayistAtheist.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 shared_examples_for "all backends" do it "should respond to #get" do @backend.should respond_to(:get) end it "should respond to #set" do @backend.should respond_to(:set) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsl-feedzirra-0.0.12.1 | spec/spec_helper.rb |