From c5378914246aaa95c0308c908a8a8bb5cc0c31ae Mon Sep 17 00:00:00 2001 From: Kerri Miller Date: Fri, 3 Jul 2015 09:39:58 -0700 Subject: [PATCH] Prevent deprecation warning by specifying test order --- test/test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index a16e64f5..09e6edd1 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -11,6 +11,10 @@ ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:" +if ActiveSupport::TestCase.respond_to?(:test_order=) + ActiveSupport::TestCase.test_order = :random +end + class ActiveSupport::TestCase include RailsERD