Class: Webspicy::Tester::Result::PostconditionMet
- Defined in:
- lib/webspicy/tester/result/postcondition_met.rb
Instance Attribute Summary collapse
-
#post ⇒ Object
readonly
Returns the value of attribute post.
Attributes inherited from Check
Instance Method Summary collapse
- #behavior ⇒ Object
- #call ⇒ Object
-
#initialize(result, post) ⇒ PostconditionMet
constructor
A new instance of PostconditionMet.
- #must? ⇒ Boolean
Methods inherited from Check
Constructor Details
#initialize(result, post) ⇒ PostconditionMet
Returns a new instance of PostconditionMet.
6 7 8 9 |
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 6 def initialize(result, post) super(result) @post = post end |
Instance Attribute Details
#post ⇒ Object (readonly)
Returns the value of attribute post.
10 11 12 |
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 10 def post @post end |
Instance Method Details
#behavior ⇒ Object
12 13 14 |
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 12 def behavior post.to_s end |
#call ⇒ Object
20 21 22 |
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 20 def call post.check! end |
#must? ⇒ Boolean
16 17 18 |
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 16 def must? true end |