Sha256: 5ff530ac973f185aaac58191d37fe6835d3483f3e8b27c6d9d6bd13a9eaf3f0f

Contents?: true

Size: 701 Bytes

Versions: 14

Compression:

Stored size: 701 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, options={}, &implementation)
        @_options = options
        @_defined_description = defined_description
        @_implementation = implementation || pending_implementation
      end
      
    private
      
      def pending_implementation
        error = NotYetImplementedError.new(caller)
        lambda { raise(error) }
      end
    end
  end
end

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

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11 lib/spec/example/example_group.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec/example/example_group.rb
rspec-1.1.10 lib/spec/example/example_group.rb
rspec-1.1.11 lib/spec/example/example_group.rb
rspec-1.1.9 lib/spec/example/example_group.rb
typo-5.1.98 vendor/plugins/rspec/lib/spec/example/example_group.rb
typo-5.2 vendor/plugins/rspec/lib/spec/example/example_group.rb