Class: Neiltest::TestCase::Result
- Inherits:
-
Struct
- Object
- Struct
- Neiltest::TestCase::Result
- Defined in:
- lib/neiltest/test_case.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#message ⇒ Object
Returns the value of attribute message.
-
#print_backtrace ⇒ Object
Returns the value of attribute print_backtrace.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace
5 6 7 |
# File 'lib/neiltest/test_case.rb', line 5 def backtrace @backtrace end |
#message ⇒ Object
Returns the value of attribute message
5 6 7 |
# File 'lib/neiltest/test_case.rb', line 5 def @message end |
#print_backtrace ⇒ Object
Returns the value of attribute print_backtrace
5 6 7 |
# File 'lib/neiltest/test_case.rb', line 5 def print_backtrace @print_backtrace end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/neiltest/test_case.rb', line 5 def type @type end |
Instance Method Details
#fail? ⇒ Boolean
10 11 12 |
# File 'lib/neiltest/test_case.rb', line 10 def fail? type == :fail end |
#method_name ⇒ Object
6 7 8 |
# File 'lib/neiltest/test_case.rb', line 6 def method_name backtrace[0].split(":in `")[1].split("'")[0] end |
#print_backtrace? ⇒ Boolean
14 15 16 |
# File 'lib/neiltest/test_case.rb', line 14 def print_backtrace? print_backtrace end |