Class: RSpec::Core::AnonymousExampleGroup Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
RSpec::Core::ExampleGroup
|
| Defined in: | rspec-core/lib/rspec/core/example_group.rb |
Overview
Unnamed example group used by SuiteHookContext.
Constant Summary
Class Attribute Summary
ExampleGroup - Inherited
| .currently_executing_a_context_hook? | Returns true if a ‘before(:context)` or |
| .top_level? | |
Class Method Summary
- .metadata Internal use only
ExampleGroup - Inherited
| .add_example | Adds an example to the example group. |
| .before_context_ivars, .children, .declaration_locations, .define_example_group_method, | |
| .define_example_method | @example. |
| .define_nested_shared_group_method, .delegate_to_metadata, .descendant_filtered_examples, .descendants, .description, .each_instance_variable_for_example, .ensure_example_groups_are_configured, | |
| .example | Defines an example within a group. |
| .examples, | |
| .fexample | Shortcut to define an example with ‘:focus => true`. |
| .filtered_examples, .find_and_eval_shared, | |
| .fit | Shortcut to define an example with ‘:focus => true`. |
| .focus | Shortcut to define an example with ‘:focus => true`. |
| .for_filtered_examples, | |
| .fspecify | Shortcut to define an example with ‘:focus => true`. |
| .id, | |
| .idempotently_define_singleton_method | Define a singleton method for the singleton class (remove the method if it’s already been defined). |
| .include_context | Includes shared content mapped to |
| .include_examples | Includes shared content mapped to |
| .initialize, .inspect, | |
| .it | Defines an example within a group. |
| .metadata | The [Metadata](Metadata) object associated with this group. |
| .next_runnable_index_for, .ordering_strategy, .parent_groups, | |
| .pending | Shortcut to define an example with ‘:pending => true`. |
| .remove_example | Removes an example from the example group. |
| .reset_memoized | Clear memoized values when adding/removing examples. |
| .run | Runs all the examples in this group. |
| .run_after_context_hooks, .run_before_context_hooks, .run_examples, .set_it_up, .set_ivars, | |
| .singleton_class | :nocov: |
| .skip | Shortcut to define an example with ‘:skip => true`. |
| .specify | Defines an example within a group. |
| .store_before_context_ivars, .subclass, | |
| .superclass_before_context_ivars | :nocov: |
| .superclass_metadata, .top_level_description, | |
| .traverse_tree_until | Traverses the tree of groups, starting with |
| .update_inherited_metadata, | |
| .with_replaced_metadata | Temporarily replace the provided metadata. |
| .xexample | Shortcut to define an example with ‘:skip => ’Temporarily skipped with xexample’‘. |
| .xit | Shortcut to define an example with ‘:skip => ’Temporarily skipped with xit’‘. |
| .xspecify | Shortcut to define an example with ‘:skip => ’Temporarily skipped with xspecify’‘. |
| .method_missing | See additional method definition at line 742. |
SharedExampleGroup - Extended
| shared_context | Alias for SharedExampleGroup#shared_examples. |
| shared_examples | Stores the block for later use. |
| shared_examples_for | Alias for SharedExampleGroup#shared_examples. |
MemoizedHelpers::ClassMethods - Extended
| let | Generates a method whose return value is memoized after the first call. |
| let! | Just like |
| subject | Declares a |
| subject! | Just like |
Hooks - Extended
| after | Declare a block of code to be run after each example (using |
| append_after | Adds |
| append_before | Alias for Hooks#before. |
| around | Declare a block of code, parts of which will be run before and parts after the example. |
| before | Declare a block of code to be run before each example (using |
| hooks | Holds the various registered hooks. |
| prepend_after | Alias for Hooks#after. |
| prepend_before | Adds |
Instance Attribute Summary
MemoizedHelpers - Included
| #__memoized | should just be placed in private section, but Ruby issues warnings on private attributes. |
Instance Method Summary
ExampleGroup - Inherited
| #described_class | Returns the class or module passed to the |
Pending - Included
MemoizedHelpers - Included
| #is_expected | Wraps the |
| #should | When |
| #should_not | Just like |
| #subject, #__init_memoized, #enforce_value_expectation, #initialize, #matcher_supports_value_expectations? | |
Class Method Details
.metadata
[ GitHub ]# File 'rspec-core/lib/rspec/core/example_group.rb', line 776
def self. {} end