lib/spec/example/example_group_factory.rb in dchelimsky-rspec-1.1.11 vs lib/spec/example/example_group_factory.rb in dchelimsky-rspec-1.1.11.1
- old
+ new
@@ -1,9 +1,9 @@
module Spec
module Example
class ExampleGroupFactory
- class << self
+ module ClassMethods
def reset
@example_group_types = nil
default(ExampleGroup)
end
@@ -74,9 +74,10 @@
def registered_types
@example_group_types.values
end
end
+ extend ClassMethods
self.reset
end
end
end