Class: Tryouts::Expectation
- Inherits:
-
Data
- Object
- Data
- Tryouts::Expectation
- Defined in:
- lib/tryouts/test_case.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#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
- #true? ⇒ Boolean
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
47 48 49 |
# File 'lib/tryouts/test_case.rb', line 47 def content @content end |
#type ⇒ Object (readonly)
Returns the value of attribute type
47 48 49 |
# File 'lib/tryouts/test_case.rb', line 47 def type @type end |
Instance Method Details
#boolean? ⇒ Boolean
50 |
# File 'lib/tryouts/test_case.rb', line 50 def boolean? = type == :boolean |
#exception? ⇒ Boolean
49 |
# File 'lib/tryouts/test_case.rb', line 49 def exception? = type == :exception |
#false? ⇒ Boolean
52 |
# File 'lib/tryouts/test_case.rb', line 52 def false? = type == :false |
#intentional_failure? ⇒ Boolean
56 |
# File 'lib/tryouts/test_case.rb', line 56 def intentional_failure? = type == :intentional_failure |
#output? ⇒ Boolean
57 |
# File 'lib/tryouts/test_case.rb', line 57 def output? = type == :output |
#performance_time? ⇒ Boolean
55 |
# File 'lib/tryouts/test_case.rb', line 55 def performance_time? = type == :performance_time |
#regex_match? ⇒ Boolean
54 |
# File 'lib/tryouts/test_case.rb', line 54 def regex_match? = type == :regex_match |
#regular? ⇒ Boolean
48 |
# File 'lib/tryouts/test_case.rb', line 48 def regular? = type == :regular |
#result_type? ⇒ Boolean
53 |
# File 'lib/tryouts/test_case.rb', line 53 def result_type? = type == :result_type |
#true? ⇒ Boolean
51 |
# File 'lib/tryouts/test_case.rb', line 51 def true? = type == :true |