Browse files

Oops. Need to check for DSL now.

[git-p4: depot-paths = "//src/minitest/dev/": change = 8291]
  • Loading branch information...
1 parent 9523805 commit f20d4bfd86742b1cddf11217dfcc794b672154b9 @zenspider zenspider committed Mar 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/minitest/spec.rb
View
2 lib/minitest/spec.rb
@@ -59,7 +59,7 @@ module Kernel # :nodoc:
def describe desc, additional_desc = nil, &block # :doc:
stack = MiniTest::Spec.describe_stack
name = [stack.last, desc, additional_desc].compact.join("::")
- sclas = stack.last || if Class === self && self < MiniTest::Spec then
+ sclas = stack.last || if Class === self && is_a?(MiniTest::Spec::DSL) then
self
else
MiniTest::Spec.spec_type desc

0 comments on commit f20d4bf

Please sign in to comment.