Permalink
Browse files

fix test

  • Loading branch information...
1 parent 2805549 commit acdea65ab15715b4c3d04c05fae61aa5b86fdf44 @aduffeck committed Jul 21, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/test_helper.rb
View
6 test/test_helper.rb
@@ -6,7 +6,11 @@
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
require File.dirname(__FILE__) + '/../lib/has_alter_ego'
-RAILS_ROOT = File.dirname(__FILE__)
+class Rails
+ def self.root
+ File.dirname(__FILE__)
+ end
+end
silence_stream(STDOUT) do
ActiveRecord::Schema.define do

0 comments on commit acdea65

Please sign in to comment.