Class: RspecInContext::Context
- Inherits:
-
Struct
- Object
- Struct
- RspecInContext::Context
- Defined in:
- lib/rspec_in_context/in_context.rb
Overview
Context struct
Instance Attribute Summary collapse
-
#block ⇒ Proc
what will be executed in the test context.
-
#name ⇒ String | Symbol
represent the name by which the context can be find.
-
#namespace ⇒ String | Symbol
namespace for context names to avoid collisions.
-
#owner ⇒ Class
current rspec context class.
-
#silent ⇒ Boolean
does the in_context wrap itself into a context with its name or an anonymous context.
Instance Attribute Details
#block ⇒ Proc
what will be executed in the test context
14 15 16 |
# File 'lib/rspec_in_context/in_context.rb', line 14 def block @block end |
#name ⇒ String | Symbol
represent the name by which the context can be find.
14 15 16 |
# File 'lib/rspec_in_context/in_context.rb', line 14 def name @name end |
#namespace ⇒ String | Symbol
namespace for context names to avoid collisions
14 15 16 |
# File 'lib/rspec_in_context/in_context.rb', line 14 def namespace @namespace end |
#owner ⇒ Class
current rspec context class. This will be used to know where a define_context has been defined
14 15 16 |
# File 'lib/rspec_in_context/in_context.rb', line 14 def owner @owner end |
#silent ⇒ Boolean
does the in_context wrap itself into a context with its name or an anonymous context
14 15 16 |
# File 'lib/rspec_in_context/in_context.rb', line 14 def silent @silent end |