Sha256: 692a95ebf27312c0875d17f39708ba3933325acccd5ff401bcfe5679f11a4835

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

require 'rubygems'
require 'mocha'
require 'builder'
require 'pivotal'
require File.join(File.dirname(__FILE__), 'factories')

Spec::Runner.configure do |config|
  config.mock_with :mocha
end

def stub_connection_to_pivotal
  RestClient::Resource.any_instance.stubs(:get).returns("")
end

def pivotal_api
  stub_connection_to_pivotal
  Pivotal::Api.new :api_token => 1
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
git-pivotal-0.2.3 spec/spec_helper.rb
idealian-git-pivotal-0.2.4 spec/spec_helper.rb
idealian-git-pivotal-0.2.3 spec/spec_helper.rb
git-pivotal-0.2.2 spec/spec_helper.rb
git-pivotal-0.2.1 spec/spec_helper.rb
git-pivotal-0.2.0 spec/spec_helper.rb