Sha256: 875f48745ffe88211246f323fda9e2c73c337127506a87cd9a9160df29cdd09f

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require 'test/unit'
require 'rubygems'
require 'bundler/setup'
Bundler.require(:development)

require 'lib/putio'

FakeWeb.allow_net_connect = false

def fixture_file(filename)
  return '' if filename == ''
  file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
  File.read(file_path)
end

def stub(http, path, file)
  response = { :body => fixture_file(file), :content_type => 'text/json' }
  FakeWeb.register_uri(http, path, response)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
putio-0.0.1.pre test/test_helper.rb