Skip to content

Commit 09da5ed

Browse files
committed
Merge pull request #153 from kerrizor/set-test-order-to-random
Prevent deprecation warning by specifying test order
2 parents bb64666 + c537891 commit 09da5ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
1313

14+
if ActiveSupport::TestCase.respond_to?(:test_order=)
15+
ActiveSupport::TestCase.test_order = :random
16+
end
17+
1418
class ActiveSupport::TestCase
1519
include RailsERD
1620

0 commit comments

Comments
 (0)