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.5.1'
Instance Method Summary
collapse
Instance Method Details
#context_name ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/test/unit/context.rb', line 10
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
18
|
# File 'lib/test/unit/context.rb', line 18
def context_name=(name); @context_name=name; end
|