fix tests
This commit is contained in:
+3
-1
@@ -54,5 +54,7 @@ def context(*args, &block)
|
||||
def self.teardown(&block) define_method(:teardown, &block) end
|
||||
end
|
||||
(class << klass; self end).send(:define_method, :name) { name.gsub(/\W/,'_') }
|
||||
$contexts << klass
|
||||
klass.class_eval &block
|
||||
end
|
||||
end
|
||||
$contexts = []
|
||||
|
||||
Reference in New Issue
Block a user