Sha256: f0937c6c44b2147fe3bf0d65b21c7bdf2167400436234634e0a9971784c275a3

Contents?: true

Size: 872 Bytes

Versions: 29

Compression:

Stored size: 872 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require 'webmock/test_unit'
require 'test/unit'
require 'aggcat'

WebMock.disable_net_connect!(:allow => 'coveralls.io')

def stub_delete(path)
  stub_request(:delete, Aggcat::Client::BASE_URL + path)
end

def stub_get(path)
  stub_request(:get, Aggcat::Client::BASE_URL + path)
end

def stub_post(path)
  stub_request(:post, Aggcat::Client::BASE_URL + path)
end

def stub_put(path)
  stub_request(:put, Aggcat::Client::BASE_URL + path)
end

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

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
aggcat-0.4.0 test/test_helper.rb
aggcat-0.3.9 test/test_helper.rb
aggcat-0.3.8 test/test_helper.rb
aggcat-0.3.7 test/test_helper.rb
aggcat-0.3.6 test/test_helper.rb
aggcat-0.3.5 test/test_helper.rb
aggcat-0.3.4 test/test_helper.rb
aggcat-0.3.3 test/test_helper.rb
aggcat-0.3.2 test/test_helper.rb
aggcat-0.3.1 test/test_helper.rb
aggcat-0.3.0 test/test_helper.rb
aggcat-0.2.9 test/test_helper.rb
aggcat-0.2.8 test/test_helper.rb
aggcat-0.2.7 test/test_helper.rb
aggcat-0.2.6 test/test_helper.rb
aggcat-0.2.5 test/test_helper.rb
aggcat-0.2.4 test/test_helper.rb
aggcat-0.2.3 test/test_helper.rb
aggcat-0.2.2 test/test_helper.rb
aggcat-0.2.1 test/test_helper.rb