Skip to content

Commit 4a20351

Browse files
committed
spec class names can possibly be nil in mt/s < 2.6.1, so work around that
1 parent fec6f1b commit 4a20351

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

activesupport/lib/active_support/test_case.rb

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
module ActiveSupport
1212
class TestCase < ::MiniTest::Spec
1313

14+
if MiniTest::Unit::VERSION < '2.6.1'
15+
class << self
16+
alias :name :to_s
17+
end
18+
end
19+
1420
# Use AS::TestCase for the base class when describing a model
1521
register_spec_type(self) do |desc|
1622
desc < ActiveRecord::Model

0 commit comments

Comments
 (0)