Method: RSpecConsole::ConfigCache#stash_shared_examples
- Defined in:
- lib/rspec-console/config_cache.rb
#stash_shared_examples ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/rspec-console/config_cache.rb', line 71 def stash_shared_examples if rspec2? self.shared_examples_copy = ::RSpec.world.shared_example_groups.dup else self.shared_examples_copy = ::RSpec.world.shared_example_group_registry .send(:shared_example_groups).dup end rescue Exception => e STDERR.puts "[rspec-console] WARN: #{e.class} #{e}" end |