Sha256: 588cf82cd8343997c5c101910c56eafa3211b863bb2fb7c5b3880383bf871b43

Contents?: true

Size: 846 Bytes

Versions: 9

Compression:

Stored size: 846 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'

require 'redgreen' unless (Object.const_defined?("TextMate") || ENV["EMACS"]) rescue nil # just a nice to have, don't blow up if not there

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

9 entries across 9 versions & 2 rubygems

Version Path
relevance-tarantula-0.0.3 test/test_helper.rb
relevance-tarantula-0.0.5 test/test_helper.rb
relevance-tarantula-0.0.6 test/test_helper.rb
relevance-tarantula-0.0.7.1 test/test_helper.rb
relevance-tarantula-0.0.7 test/test_helper.rb
relevance-tarantula-0.0.8.0 test/test_helper.rb
relevance-tarantula-0.0.8.1 test/test_helper.rb
tarantula-0.0.8.1 test/test_helper.rb
tarantula-0.0.5 test/test_helper.rb