Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 13168a9acd
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.775 kb
$LOAD_PATH.unshift(File.join(File.dirname(File.dirname(__FILE__)),'lib'))
require 'pickler'
begin; require 'rubygems'; rescue LoadError; end
require 'spec'
Spec::Runner.configure do |config|
config.before(:all) do
require 'fake_web'
directory = File.join(File.dirname(__FILE__),'tracker')
Dir.chdir(directory) do
Dir["**/*.xml"].each do |file|
response = Net::HTTPOK.new("1.1","200","OK")
response.instance_variable_set(:@body, File.read(file))
response.add_field "Content-type", "application/xml"
url = "http://www.pivotaltracker.com/services/v3/#{file.sub(/\.xml$/,'')}"
FakeWeb.register_uri(:get, url, :response => response)
end
end
end
config.after(:all) do
FakeWeb.clean_registry
end
end
Jump to Line
Something went wrong with that request. Please try again.