Class: Spec::Example::ExampleGroup
- Extended by:
- ExampleGroupMethods
- Includes:
- ExampleMethods
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/example/example_group.rb
Overview
Base class for customized example groups. Use this if you want to make a custom example group.
Instance Attribute Summary
Attributes included from ExampleGroupMethods
#description_options, #spec_path
Instance Method Summary collapse
-
#initialize(defined_description, options = {}, &implementation) ⇒ ExampleGroup
constructor
A new instance of ExampleGroup.
Methods included from ExampleGroupMethods
all_before_each_parts, backtrace, create_example_group_subclass, create_shared_example_group, describe, described_type, description, description_args, description_parts, description_text, example, example_group_backtrace, example_group_creation_listeners, examples, inherited, it_should_behave_like, number_of_examples, predicate_matchers, register_example_group, reset, run, run_after_each, run_before_each, set_description, subject, subject_block, xexample
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, #remove_after, #setup, #teardown
Methods included from ExampleMethods
#backtrace, #description, #eval_block, #eval_each_fail_fast, #eval_each_fail_slow, #execute, #full_description, #implementation_backtrace, #instance_variable_hash, #options, #set_instance_variables_from_hash, #should, #should_not, #subject, #violated
Methods included from ModuleReopeningFix
#child_modules, #include, #included
Methods included from Pending
Methods included from Matchers
#__original_match, #be, #be_a, #be_close, #change, clear_generated_description, #eql, #equal, #exist, generated_description, #has, #have, #have_at_least, #have_at_most, #include, last_matcher, last_matcher=, last_should, last_should=, #match, #method_missing, #raise_error, #respond_to, #satisfy, #simple_matcher, #throw_symbol, #wrap_expectation
Methods included from Mack::Testing::Helpers
#assigns, #clear_session, #cookies, #delete, #file_for_upload, #get, #in_session, #post, #put, #remote_test, #remove_cookie, #request, #response, #responses, #session, #set_cookie, #temp_app_config
Methods included from Mack::Routes::Urls
create_method, #redirect_html, #url_for_pattern
Constructor Details
#initialize(defined_description, options = {}, &implementation) ⇒ ExampleGroup
Returns a new instance of ExampleGroup.
9 10 11 12 13 14 |
# File 'lib/gems/rspec-1.1.12/lib/spec/example/example_group.rb', line 9 def initialize(defined_description, ={}, &implementation) @_options = @_defined_description = defined_description @_implementation = implementation || pending_implementation @_backtrace = caller end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Spec::Matchers