Method: Test::Unit::Assertions#assert_output
- Defined in:
- lib/nitro/test/assertions.rb
#assert_output(options = {}) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/nitro/test/assertions.rb', line 46 def assert_output( = {}) msg = [:msg] if re = [:match] || [:contains] assert_output_match(re, msg) end if re = [:no_match] || [:contains_no] assert_output_not_match(re, msg) end if content_type = [:content_type] assert_content_type(content_type, msg) end end |