Class: Spec::Example::SharedExampleGroup
- Extended by:
- ClassMethods
- Includes:
- ExampleGroupMethods
- Defined in:
- lib/spec/example/shared_example_group.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary
Attributes included from ExampleGroupMethods
Instance Method Summary collapse
-
#included(mod) ⇒ Object
:nodoc:.
-
#initialize(*args, &example_group_block) ⇒ SharedExampleGroup
constructor
A new instance of SharedExampleGroup.
Methods included from ClassMethods
clear, count, find, include?, register
Methods included from ExampleGroupMethods
#backtrace, #describe, #described_class, #described_type, #description, #description_args, #description_parts, #example, #example_descriptions, #example_group_backtrace, #example_group_hierarchy, #example_implementations, #examples, #filtered_description, #include_constants_in, #inherited, #it_should_behave_like, #nested_descriptions, #notify, #number_of_examples, #pending_implementation, #run, #set_description, #xexample
Methods included from PredicateMatchers
#define_methods_from_predicate_matchers, #predicate_matchers
Methods included from Spec::Example::Subject::ExampleGroupMethods
Methods included from BeforeAndAfterHooks
#after_all_parts, #after_each_parts, after_suite_parts, #after_suite_parts, #append_after, #append_before, #before_all_parts, #before_each_parts, before_suite_parts, #before_suite_parts, #prepend_after, #prepend_before
Constructor Details
#initialize(*args, &example_group_block) ⇒ SharedExampleGroup
Returns a new instance of SharedExampleGroup.
49 50 51 52 |
# File 'lib/spec/example/shared_example_group.rb', line 49 def initialize(*args, &example_group_block) set_description(*args) @example_group_block = example_group_block end |
Instance Method Details
#included(mod) ⇒ Object
:nodoc:
54 55 56 |
# File 'lib/spec/example/shared_example_group.rb', line 54 def included(mod) # :nodoc: mod.module_eval(&@example_group_block) end |