Method: Test::Unit::Assertions#assert_not_redirected
- Defined in:
- lib/og/test/assertions.rb
#assert_not_redirected(options = {}) ⇒ Object
160 161 162 163 164 |
# File 'lib/og/test/assertions.rb', line 160 def assert_not_redirected( = {}) msg = [:msg] msg = format_msg("Unexpected redirection (location = '#{@context.response_headers['location']}')", msg) assert_block(msg) { !@context.redirect? } end |