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