Sha256: 702d1577d467946ef5921c84dda9fda6ca8d90e3efffe4cf575513ad1dd8c258
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
require "rubygems" require "bundler/setup" require File.join(File.dirname(__FILE__), '..', 'lib', 'peaty') require 'test/unit' require 'fakeweb' FakeWeb.allow_net_connect = false TEST_TOKEN = "test" # USER_ID = 399324 PROJECT_ID = 153937 STORY_ID = 6821071 RELEASE_ID = 6821121 PT_BASE_URI = "https://www.pivotaltracker.com/services/v3" { "/projects" => "projects", "/projects/#{PROJECT_ID}" => "project", "/projects/#{PROJECT_ID}/stories" => "stories", "/projects/#{PROJECT_ID}/iterations" => "iterations", "/projects/#{PROJECT_ID}/iterations/done" => "iterations_done", "/projects/#{PROJECT_ID}/stories/#{STORY_ID}" => "story", "/projects/#{PROJECT_ID}/stories?filter=type%3Afeature" => "features", "/projects/#{PROJECT_ID}/stories?filter=type%3Arelease" => "releases", "/projects/#{PROJECT_ID}/stories/#{RELEASE_ID}" => "release", "/projects/#{PROJECT_ID}/stories?filter=type%3Achore" => "chores", "/projects/#{PROJECT_ID}/stories?filter=type%3Abug" => "bugs", "/projects/#{PROJECT_ID}/stories?filter=includedone%3Atrue" => "stories_with_done", }.each do |(path, fixture)| FakeWeb.register_uri(:get, PT_BASE_URI + path, :body => File.read(File.join(File.dirname(__FILE__), "fixtures", "%s.xml" % fixture))) end class User < Struct.new(:pivotal_tracker_api_key) pivotal_tracker_for :pivotal_tracker_api_key end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peaty-0.4.7 | test/test_helper.rb |
peaty-0.4.6 | test/test_helper.rb |