lib/spec/runner/context_eval.rb in rspec-0.7.5.1 vs lib/spec/runner/context_eval.rb in rspec-0.8.0

- old
+ new

@@ -7,12 +7,13 @@ derive_execution_context_class_from_context_superclass end def include(mod) context_modules << mod + mod.send :included, self end - + def context_setup(&block) context_setup_parts << block end def context_teardown(&block) @@ -25,11 +26,11 @@ def teardown(&block) teardown_parts << block end - def specify(spec_name, opts={}, &block) + def specify(spec_name=:__generate_description, opts={}, &block) specifications << Specification.new(spec_name, opts, &block) end def methods my_methods = super @@ -86,10 +87,10 @@ def context_superclass @context_superclass ||= Object end def context_modules - @context_modules ||= [] + @context_modules ||= [Spec::Matchers, Spec::Mocks] end def specifications @specifications ||= [] end