fix tests

This commit is contained in:
rick
2011-03-10 11:06:18 -08:00
parent 45a300c6bc
commit e0494a6321
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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 = []