Sha256: a954a30dd83aa84185d4a6e6a5ab036a93b4e02ffd5a5d0d4eee8bbe653382f2

Contents?: true

Size: 1.35 KB

Versions: 10

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

10 entries across 10 versions & 1 rubygems

Version Path
jsl-feedzirra-0.0.12.10 spec/spec_helper.rb
jsl-feedzirra-0.0.12.12 spec/spec_helper.rb
jsl-feedzirra-0.0.12.2 spec/spec_helper.rb
jsl-feedzirra-0.0.12.3 spec/spec_helper.rb
jsl-feedzirra-0.0.12.4 spec/spec_helper.rb
jsl-feedzirra-0.0.12.5 spec/spec_helper.rb
jsl-feedzirra-0.0.12.6 spec/spec_helper.rb
jsl-feedzirra-0.0.12.7 spec/spec_helper.rb
jsl-feedzirra-0.0.12.8 spec/spec_helper.rb
jsl-feedzirra-0.0.12.9 spec/spec_helper.rb