Prettify the login page
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / test_helper.rb
1
2 begin
3   require 'rubygems'
4   require 'ruby-debug' 
5   Debugger.start
6 rescue Object
7 end
8
9 HERE = File.expand_path(File.dirname(__FILE__))
10 $LOAD_PATH << HERE
11
12 # require 'integration/app/config/environment'
13 require 'integration/app/test/test_helper'
14
15 def silently
16   stderr, $stderr = $stderr, StringIO.new
17   yield
18   $stderr = stderr
19 end
20
21 Inflector.inflections {|i| i.irregular 'fish', 'fish' }
22
23 $LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path = HERE + "/fixtures")
24 $LOAD_PATH.unshift(HERE + "/models")
25 $LOAD_PATH.unshift(HERE + "/modules")
26
27 class Test::Unit::TestCase
28   self.use_transactional_fixtures = !(ActiveRecord::Base.connection.is_a? ActiveRecord::ConnectionAdapters::MysqlAdapter rescue false)
29   self.use_instantiated_fixtures  = false
30 end
31
32 # test schema
33 silently do
34   load(HERE + "/schema.rb")
35 end