Class: Tryouts::OutputExpectation
- Inherits:
-
Data
- Object
- Data
- Tryouts::OutputExpectation
- Defined in:
- lib/tryouts/test_case.rb
Overview
Special expectation type for output capturing with pipe information
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#pipe ⇒ Object
readonly
Returns the value of attribute pipe.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #boolean? ⇒ Boolean
- #exception? ⇒ Boolean
- #false? ⇒ Boolean
- #intentional_failure? ⇒ Boolean
- #output? ⇒ Boolean
- #performance_time? ⇒ Boolean
- #regex_match? ⇒ Boolean
- #regular? ⇒ Boolean
- #result_type? ⇒ Boolean
- #stderr? ⇒ Boolean
- #stdout? ⇒ Boolean
- #true? ⇒ Boolean
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
61 62 63 |
# File 'lib/tryouts/test_case.rb', line 61 def content @content end |
#pipe ⇒ Object (readonly)
Returns the value of attribute pipe
61 62 63 |
# File 'lib/tryouts/test_case.rb', line 61 def pipe @pipe end |
#type ⇒ Object (readonly)
Returns the value of attribute type
61 62 63 |
# File 'lib/tryouts/test_case.rb', line 61 def type @type end |
Instance Method Details
#boolean? ⇒ Boolean
64 |
# File 'lib/tryouts/test_case.rb', line 64 def boolean? = type == :boolean |
#exception? ⇒ Boolean
63 |
# File 'lib/tryouts/test_case.rb', line 63 def exception? = type == :exception |
#false? ⇒ Boolean
66 |
# File 'lib/tryouts/test_case.rb', line 66 def false? = type == :false |
#intentional_failure? ⇒ Boolean
70 |
# File 'lib/tryouts/test_case.rb', line 70 def intentional_failure? = type == :intentional_failure |
#output? ⇒ Boolean
71 |
# File 'lib/tryouts/test_case.rb', line 71 def output? = type == :output |
#performance_time? ⇒ Boolean
69 |
# File 'lib/tryouts/test_case.rb', line 69 def performance_time? = type == :performance_time |
#regex_match? ⇒ Boolean
68 |
# File 'lib/tryouts/test_case.rb', line 68 def regex_match? = type == :regex_match |
#regular? ⇒ Boolean
62 |
# File 'lib/tryouts/test_case.rb', line 62 def regular? = type == :regular |
#result_type? ⇒ Boolean
67 |
# File 'lib/tryouts/test_case.rb', line 67 def result_type? = type == :result_type |
#stderr? ⇒ Boolean
74 |
# File 'lib/tryouts/test_case.rb', line 74 def stderr? = pipe == 2 |
#stdout? ⇒ Boolean
73 |
# File 'lib/tryouts/test_case.rb', line 73 def stdout? = pipe == 1 |
#true? ⇒ Boolean
65 |
# File 'lib/tryouts/test_case.rb', line 65 def true? = type == :true |