Module: Test::Unit::Context
- Defined in:
- lib/test/unit/context.rb,
lib/test/unit/context/spec.rb,
lib/test/unit/context/shared.rb,
lib/test/unit/context/context.rb,
lib/test/unit/context/helpers.rb,
lib/test/unit/context/version.rb
Defined Under Namespace
Modules: Context, Helpers, Shared, Spec
Constant Summary
collapse
- VERSION =
"0.3.0"
Instance Method Summary
collapse
Instance Method Details
#context_name ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/test/unit/context.rb', line 9
def context_name
if superclass.respond_to?(:context_name)
"#{superclass.context_name} #{@context_name}".gsub(/^\s+/, "")
else
@context_name
end
end
|
#context_name=(name) ⇒ Object
17
|
# File 'lib/test/unit/context.rb', line 17
def context_name=(name); @context_name=name; end
|