mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 17:50:13 +01:00
18 lines
483 B
Ruby
18 lines
483 B
Ruby
|
|
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, &implementation)
|
||
|
|
@_defined_description = defined_description
|
||
|
|
@_implementation = implementation
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
Spec::ExampleGroup = Spec::Example::ExampleGroup
|