Sha256: 056285740eb6b6c35faa968db7b79568b6d2c117df7cbf52880c11a97df606e7

Contents?: true

Size: 1015 Bytes

Versions: 5

Compression:

Stored size: 1015 Bytes

Contents

# sets up the required environment for running tests
#
  $src_dir = File.expand_path(File.dirname(File.dirname(__FILE__)))
  $lib_dir = File.join($src_dir, 'lib')
  $test_dir = File.join($src_dir, 'test')
  $test_lib_dir = File.join($src_dir, 'test', 'lib')
  $test_data_dir = File.join($src_dir, 'test', 'data')
  $test_unit_dir = File.join($test_dir, 'unit')
  $test_unit_lib_dir = File.join($test_unit_dir, 'lib')
  $test_integration_dir = File.join($test_dir, 'integration')
  $test_integration_lib_dir = File.join($test_integration_dir, 'lib')
  $test_config_file = File.join($test_dir, 'config.yml')

  $load_path = [$lib_dir, $test_dir, $test_lib_dir]
  $load_path.each{|load_path| $LOAD_PATH.unshift(load_path)}
  ENV['RUBYLIB'] = $LOAD_PATH.join(File::PATH_SEPARATOR)

  Dir.chdir($src_dir)

  require 'test/unit'
  require 'socket'
  require File.join($lib_dir, 'gnip')
  require File.join($test_lib_dir, 'shoulda')
  require File.join($test_lib_dir, 'xmlsimple')
  require File.join($test_dir, 'helper')

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
gnip-gnip-1.1.1 test/loader.rb
gnip-0.4.2 test/loader.rb
gnip-1.0.0 test/loader.rb
gnip-1.1.1 test/loader.rb
gnip-1.1.2 test/loader.rb