Sha256: 38f14d009735a9f72d6997f124e6cb331db7bece03572a2146969afc2d16396b

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

basedir = File.dirname(__FILE__)
$:.unshift "#{basedir}/../lib"
require 'rubygems' 
gem 'ruby-debug'
gem 'test-spec'
gem 'actionpack'
gem 'activerecord'
gem 'activesupport'

require 'test/spec'
require 'mocha'    
require 'ostruct'
require 'ruby-debug'
require 'activerecord'
require 'relevance/tarantula'

# needed for html-scanner, grr
require 'active_support'
require 'action_controller'

class Test::Unit::TestCase 
  def test_output_dir
    File.join(File.dirname(__FILE__), "..", "tmp", "test_output")
  end

  # TODO change puts/print to use a single method for logging, which will then make the stubbing cleaner
  def stub_puts_and_print(obj)
    obj.stubs(:puts)
    obj.stubs(:print)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relevance-tarantula-0.0.2 test/test_helper.rb