Sha256: 766f46871155f6a167222a549f65b2de6e975dafcb2f7645b23e42cea8b1d9e8

Contents?: true

Size: 734 Bytes

Versions: 2

Compression:

Stored size: 734 Bytes

Contents

module Spec
  module Example
    # Base class for customized example groups. Use this if you
    # want to make a custom example group.
    class ExampleGroup
      extend Spec::Example::ExampleGroupMethods
      include Spec::Example::ExampleMethods

      def initialize(defined_description=nil, options={}, &implementation)
        @_options = options
        @_defined_description = defined_description
        @_implementation = implementation || pending_implementation
        @_backtrace = caller
      end
      
    private
      
      def pending_implementation
        error = NotYetImplementedError.new(caller)
        lambda { raise(error) }
      end
    end
  end
end

Spec::ExampleGroup = Spec::Example::ExampleGroup

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
newbamboo-evented-rspec-1.1.12 lib/spec/example/example_group.rb
newbamboo-rspec-1.1.12 lib/spec/example/example_group.rb