# File lib/rspec/core/shared_example_group.rb, line 40 def share_as(name, &block) RSpec.deprecate("Rspec::Core::SharedExampleGroup#share_as", :replacement => "RSpec::SharedContext or shared_examples") SharedExampleGroup.registry.add_const(self, name, &block) end