Module: Test::Unit::Assertions
- Included in:
- Web::Connection
- Defined in:
- lib/web/assertinclude.rb
Instance Method Summary collapse
Instance Method Details
#assert_includes(needle, haystack, message = "") ⇒ Object
117 118 119 120 121 122 123 124 125 |
# File 'lib/web/assertinclude.rb', line 117 def assert_includes needle, haystack, ="" _wrap_assertion { = needle.compare_includes?( haystack ) unless( == "") raise Test::Unit::AssertionFailedError.new(.chomp) #flunk(message.chomp) end } end |