Class: Webspicy::Tester::Result::PostconditionMet

Inherits:
Check
  • Object
show all
Defined in:
lib/webspicy/tester/result/postcondition_met.rb

Instance Attribute Summary collapse

Attributes inherited from Check

#result

Instance Method Summary collapse

Methods inherited from Check

#_!

Constructor Details

#initialize(result, post) ⇒ 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

#postObject (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

#behaviorObject



12
13
14
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 12

def behavior
  post.to_s
end

#callObject



20
21
22
23
24
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 20

def call
  if err = post.check!
    _! err
  end
end

#must?Boolean



16
17
18
# File 'lib/webspicy/tester/result/postcondition_met.rb', line 16

def must?
  true
end