Skip to content

Commit

Permalink
Merge pull request #174 from vandrijevik/fix-activesupport-test-order…
Browse files Browse the repository at this point in the history
…-warning

Set ActiveSupport::TestCase.test_order to avoid warning
  • Loading branch information
matthuhiggins committed May 26, 2015
2 parents 00d0c74 + fc7484d commit 7c5261a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def execute(sql, name = nil)
end
end

if ActiveSupport::TestCase.respond_to?(:test_order=)
ActiveSupport::TestCase.test_order = :random
end

module Foreigner
class UnitTest < ActiveSupport::TestCase
end
Expand All @@ -57,4 +61,4 @@ def with_migration(&blk)
migration
end
end
end
end

0 comments on commit 7c5261a

Please sign in to comment.