test/test_helper.rb in has_emails-0.1.0 vs test/test_helper.rb in has_emails-0.1.1
- old
+ new
@@ -2,10 +2,10 @@
$:.unshift("#{File.dirname(__FILE__)}/../../plugin_test_helper/lib")
require 'rubygems'
require 'plugin_test_helper'
# Run the migrations
-ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
+ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
# Mixin the factory helper
require File.expand_path("#{File.dirname(__FILE__)}/factory")
class Test::Unit::TestCase #:nodoc:
include Factory