Class: Spectus::Result::Pass Private
- Inherits:
-
Object
- Object
- Spectus::Result::Pass
- Includes:
- Base
- Defined in:
- lib/spectus/result/pass.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The class that is responsible for reporting that the expectation is true.
Instance Attribute Summary collapse
-
#message ⇒ String
readonly
private
The message that describe the state.
Attributes included from Base
#actual, #challenge, #context, #error, #expected, #got, #level, #subject
Instance Method Summary collapse
-
#result? ⇒ Boolean
private
The value of the expectation of the spec.
-
#to_char ⇒ String
private
Identify the state of the result.
Methods included from Base
#initialize, #negate?, #to_h, #valid?
Instance Attribute Details
#message ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The message that describe the state.
12 13 14 |
# File 'lib/spectus/result/pass.rb', line 12 def @message end |
Instance Method Details
#result? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The value of the expectation of the spec.
17 18 19 |
# File 'lib/spectus/result/pass.rb', line 17 def result? true end |
#to_char ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Identify the state of the result.
24 25 26 27 28 29 30 |
# File 'lib/spectus/result/pass.rb', line 24 def to_char if got '.' else 'I' end end |