Skip to content

Commit a3daa74

Browse files
committed
Deal with ActiveSupport.test_order
We now need to require 'active_support' as well as 'active_support/test_case'. And we need to set the test order explicitly to avoid a deprecation warning.
1 parent b04d749 commit a3daa74

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/spring/test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
require "active_support"
12
require "active_support/test_case"
23

4+
ActiveSupport.test_order = :random
5+
36
module Spring
47
module Test
58
class << self

spring.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Gem::Specification.new do |gem|
1818
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
1919
gem.require_paths = ["lib"]
2020

21-
gem.add_development_dependency 'activesupport'
21+
gem.add_development_dependency 'activesupport', '~> 4.2.0'
2222
gem.add_development_dependency 'rake'
2323
end

0 commit comments

Comments
 (0)