Method: Test::Unit::Assertions#assert_content_type
- Defined in:
- lib/nitro/test/assertions.rb
#assert_content_type(ctype, msg) ⇒ Object
71 72 73 74 |
# File 'lib/nitro/test/assertions.rb', line 71 def assert_content_type(ctype, msg) msg = format_msg("Content type is not '#{ctype}' as expected", msg) assert_block(msg) { @context.content_type == ctype } end |