test/test_helper.rb in auto_html-1.2.1 vs test/test_helper.rb in auto_html-1.3.0
- old
+ new
@@ -1,5 +1,12 @@
require 'rubygems'
+
+rails_version = ENV['RAILS_VERSION']
+if rails_version
+ gem "activerecord", rails_version
+ gem "actionpack", rails_version
+end
+
require 'test/unit'
require 'active_record'
require File.dirname(__FILE__) + '/../rails/init'