Method: TestML::Runtime::Unit#assert_HAS
- Defined in:
- lib/testml/runtime/unit.rb
#assert_HAS(got, has) ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/testml/runtime/unit.rb', line 74 def assert_HAS(got, has) got = got.value has = has.value assertion = got.index(has) if !assertion msg = <<"..." Failed TestML HAS (~~) assertion. This text: '#{got}' does not contain this string: '#{has}' ... STDERR.write(msg) end testcase.assert(assertion, get_label) end |