Skip to content

Commit

Permalink
Merge pull request #153 from kerrizor/set-test-order-to-random
Browse files Browse the repository at this point in the history
Prevent deprecation warning by specifying test order
  • Loading branch information
kerrizor committed Jul 3, 2015
2 parents bb64666 + c537891 commit 09da5ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 09da5ed

Please sign in to comment.