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