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, message=""
  _wrap_assertion {
    message = needle.compare_includes?( haystack )
    unless( message == "")
      flunk(message.chomp)
    end
  }
end