Method: RSpec::Core::Configuration#alias_example_group_to
- Defined in:
- lib/rspec/core/configuration.rb
#alias_example_group_to(new_name, *args) ⇒ void
Note:
The defined aliased will also be added to the top level
(e.g. main
and from within modules) if
expose_dsl_globally
is set to true.
Creates a method that defines an example group with the provided metadata. Can be used to define example group/metadata shortcuts.
1209 1210 1211 1212 |
# File 'lib/rspec/core/configuration.rb', line 1209 def alias_example_group_to(new_name, *args) = Metadata.build_hash_from(args) RSpec::Core::ExampleGroup.define_example_group_method(new_name, ) end |