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(options = {})
  msg = options[:msg]
  if re = options[:match] || options[:contains]
    assert_output_match(re, msg)
  end
  if re = options[:no_match] || options[:contains_no]
    assert_output_not_match(re, msg)
  end
  if content_type = options[:content_type]
    assert_content_type(content_type, msg)
  end
end