mattly-minitest 1.4.2.1 → 1.4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/minitest/spec.rb +1 -1
- metadata +1 -1
data/lib/minitest/spec.rb
CHANGED
|
@@ -118,7 +118,7 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
|
|
|
118
118
|
def self.expect(desc=nil, &block)
|
|
119
119
|
@minitest_expection_counter ||= 0; @minitest_expectation_counter += 1
|
|
120
120
|
desc ||= "[#{@minitest_expection_counter}]"
|
|
121
|
-
name = ["test_", description_stack, desc].flatten.join('_')
|
|
121
|
+
name = ["test_", description_stack, desc].flatten.join(' ').gsub(/\W+/, '_').downcase
|
|
122
122
|
define_method name, &block
|
|
123
123
|
end
|
|
124
124
|
|