Sha256: 79c62c20799348f0c4146650ac2951e3a1ed966ad745f0369cb2e471e7e789c1

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 Bytes

Contents

$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
SimpleCov.start
require 'gems'
require 'rspec'
require 'webmock/rspec'

def a_delete(path)
  a_request(:delete, 'https://nick%40gemcutter.org:schwwwwing@rubygems.org' + path)
end

def a_get(path)
  a_request(:get, 'https://nick%40gemcutter.org:schwwwwing@rubygems.org' + path)
end

def a_post(path)
  a_request(:post, 'https://nick%40gemcutter.org:schwwwwing@rubygems.org' + path)
end

def stub_delete(path)
  stub_request(:delete, 'https://nick%40gemcutter.org:schwwwwing@rubygems.org' + path)
end

def stub_get(path)
  stub_request(:get, 'https://nick%40gemcutter.org:schwwwwing@rubygems.org' + path)
end

def stub_post(path)
  stub_request(:post, 'https://nick%40gemcutter.org:schwwwwing@rubygems.org' + path)
end

def fixture_path
  File.expand_path('../fixtures', __FILE__)
end

def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gems-0.0.8 spec/helper.rb
gems-0.0.7 spec/helper.rb