share_as (Spec::DSL::Main)

    # File lib/spec/dsl/main.rb, line 78
          def share_as(name, &block)
            begin
              args = [name]
              add_options(args)
              set_location(args.options, caller(0)[1])
              Object.const_set(name, Spec::Example::ExampleGroupFactory.create_shared_example_group(*args, &block))
            rescue NameError => e
              raise NameError.new(e.message + "\nThe first argument to share_as must be a legal name for a constant\n")
            end
          end