Class: Spec::Example::ExampleGroup

Inherits:
Object
  • Object
show all
Extended by:
ExampleGroupMethods
Includes:
ExampleMethods
Defined in:
lib/gems/rspec-1.1.11/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, #description_text, #spec_path

Attributes included from Matchers::ModuleMethods

#last_matcher, #last_should

Instance Method Summary collapse

Methods included from ExampleGroupMethods

create_nested_example_group, create_shared_example_group, describe, described_type, description, description_args, description_parts, description_text, example, examples, inherited, it_should_behave_like, number_of_examples, predicate_matchers, register, registration_backtrace, reset, run, run_after_each, run_before_each, set_description, unregister, xexample

Methods included from BeforeAndAfterHooks

#after_all_parts, #after_each_parts, #append_after, #append_before, #before_all_parts, #before_each_parts, #prepend_after, #prepend_before, #remove_after, #setup, #teardown

Methods included from ExampleMethods

#__full_description, #description, #eval_block, #eval_each_fail_fast, #eval_each_fail_slow, #execute, #implementation_backtrace, #instance_variable_hash, #options, #set_instance_variables_from_hash, #violated

Methods included from ModuleReopeningFix

#child_modules, #include, #included

Methods included from ModuleThatIsReopened

#module_that_is_reopened_method

Methods included from Pending

#pending

Methods included from Matchers

#be, #be_close, #change, #eql, #equal, #exception_from, #exist, #fail, #fail_with, #have, #have_at_least, #have_at_most, #include, #map_specs, #match, #method_missing, #raise_error, #respond_to, #run_with, #satisfy, #simple_matcher, #smart_match, #throw_symbol

Methods included from Matchers::ModuleMethods

#clear_generated_description, #generated_description

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
# File 'lib/gems/rspec-1.1.11/lib/spec/example/example_group.rb', line 9

def initialize(defined_description, options={}, &implementation)
  @_options = options
  @_defined_description = defined_description
  @_implementation = implementation || pending_implementation
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Spec::Matchers