Sha256: 56b9073efec8a146afe8e00a1b05bb33e94f86963cfc61e3a8c2c5328e513c1c

Contents?: true

Size: 730 Bytes

Versions: 16

Compression:

Stored size: 730 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
        @_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

16 entries across 16 versions & 4 rubygems

Version Path
dchelimsky-rspec-1.1.11.1 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11.2 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11.3 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11.4 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11.5 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11.6 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.11.7 lib/spec/example/example_group.rb
dchelimsky-rspec-1.1.12 lib/spec/example/example_group.rb
mack-0.8.3.1 lib/gems/rspec-1.1.12/lib/spec/example/example_group.rb
mack-0.8.3 lib/gems/rspec-1.1.12/lib/spec/example/example_group.rb
rspec-1.1.12 lib/spec/example/example_group.rb
spree-0.6.0 vendor/plugins/rspec/lib/spec/example/example_group.rb
spree-0.7.1 vendor/plugins/rspec/lib/spec/example/example_group.rb
spree-0.7.0 vendor/plugins/rspec/lib/spec/example/example_group.rb
spree-0.8.0 vendor/plugins/rspec/lib/spec/example/example_group.rb
spree-0.8.1 vendor/plugins/rspec/lib/spec/example/example_group.rb