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