test/test_helper.rb in cells-3.10.1 vs test/test_helper.rb in cells-3.11.0
- old
+ new
@@ -1,8 +1,7 @@
# encoding: utf-8
-require 'rubygems'
-require 'minitest/spec'
+require 'minitest/autorun'
ENV['RAILS_ENV'] = 'test'
require "dummy/config/environment"
require "rails/test_help" # adds stuff like @routes, etc.
@@ -38,10 +37,10 @@
require "haml"
require "haml/template" # Thanks, Nathan!
ActiveSupport::TestCase.class_eval do # this is only needed in integration tests (AC::TestCase).
def fix_relative_url_root
- return unless Cell.rails3_0?
+ return unless Cell.rails_version.~("3.0")
@controller.config.instance_eval do
def relative_url_root
""
end
\ No newline at end of file