Method: RSpec::Core::SharedExampleGroup::TopLevelDSL.remove_globally!
- Defined in:
- lib/rspec/core/shared_example_group.rb
.remove_globally! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Removes the top level DSL methods to Module and the top level binding.
135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/rspec/core/shared_example_group.rb', line 135 def self.remove_globally! return unless exposed_globally? Core::DSL.change_global_dsl do undef shared_examples undef shared_context undef shared_examples_for end @exposed_globally = false end |