Module: RSpec::Core::ObjectExtensions

Included in:
Object
Defined in:
lib/rspec/core/extensions/object.rb

Instance Method Summary collapse

Instance Method Details

#describe(*args, &example_group_block) ⇒ Object



4
5
6
7
# File 'lib/rspec/core/extensions/object.rb', line 4

def describe(*args, &example_group_block)
  args << {} unless args.last.is_a?(Hash)
  RSpec::Core::ExampleGroup.describe(*args, &example_group_block).register
end