Method: RSpec::Core::Configuration#alias_example_to
- Defined in:
- lib/rspec/core/configuration.rb
#alias_example_to(name, *args) ⇒ void
Note:
The specific example alias below (pending
) is already
defined for you.
Note:
Use with caution. This extends the language used in your
specs, but does not add any additional documentation. We use this
in RSpec to define methods like focus
and xit
, but we also add
docs for those methods.
Creates a method that delegates to example
including the submitted
args
. Used internally to add variants of example
like pending
:
1177 1178 1179 1180 |
# File 'lib/rspec/core/configuration.rb', line 1177 def alias_example_to(name, *args) = Metadata.build_hash_from(args) RSpec::Core::ExampleGroup.define_example_method(name, ) end |