Sha256: a32039dfc1a088547a4899c8259c5edfbf1a0ce3691da43d75b676547fcd1d31

Contents?: true

Size: 706 Bytes

Versions: 10

Compression:

Stored size: 706 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'yaml'
require File.dirname(__FILE__) + '/../lib/DataSift/mockapiclient'

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

class Test::Unit::TestCase
	def init()
		@config = YAML::load(File.open(File.join(File.dirname(__FILE__), '..', 'config.yml')))
		@testdata = YAML::load(File.open(File.join(File.dirname(__FILE__), 'testdata.yml')))
	end

	def initUser(mock = true)
			@user = DataSift::User.new(@config['username'], @config['api_key'])
			if mock
				@user.setApiClient(DataSift::MockApiClient.new())
				@user.api_client.clearResponse()
			end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datasift-1.5.0 test/helper.rb
datasift-1.4.1 test/helper.rb
datasift-1.4.0 test/helper.rb
datasift-1.3.1 test/helper.rb
datasift-1.3.0 test/helper.rb
datasift-1.2.1 test/helper.rb
datasift-1.2.0 test/helper.rb
datasift-1.1.0 test/helper.rb
datasift-1.0.0 test/helper.rb
datasift-0.2.0 test/helper.rb