Module: Test::Unit::Assertions
- Included in:
- Web::CGI
- Defined in:
- lib/web/assertinclude.rb
Instance Method Summary collapse
Instance Method Details
#assert_includes(needle, haystack, message = "") ⇒ Object
99 100 101 102 103 104 105 106 |
# File 'lib/web/assertinclude.rb', line 99 def assert_includes needle, haystack, ="" _wrap_assertion { = needle.compare_includes?( haystack ) unless( == "") flunk(.chomp) end } end |