Class: CommandUnit::ExpectationResult
- Inherits:
-
Object
- Object
- CommandUnit::ExpectationResult
- Defined in:
- lib/command-unit/expectation_result.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(description, expectation_met) ⇒ ExpectationResult
constructor
A new instance of ExpectationResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(description, expectation_met) ⇒ ExpectationResult
Returns a new instance of ExpectationResult.
4 5 6 7 |
# File 'lib/command-unit/expectation_result.rb', line 4 def initialize(description, expectation_met) = description @success = expectation_met end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/command-unit/expectation_result.rb', line 8 def end |
Instance Method Details
#success? ⇒ Boolean
9 10 11 |
# File 'lib/command-unit/expectation_result.rb', line 9 def success? @success end |