From e1176154657cf3e6e1af43223d43c1ba980237dd Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 10 Jun 2015 20:23:50 -0300 Subject: [PATCH] This should be MAJOR >= 4 --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index f212acb6..20aed17c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -10,7 +10,7 @@ require 'minitest/autorun' Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) class Foo < Rails::Application - if Rails.version.to_s.start_with? '4' + if Rails::VERSION::MAJOR >= 4 config.eager_load = false config.secret_key_base = 'abc123' config.action_controller.perform_caching = true