engines/adva_cms/test/test_helper/extensions/integration_test.rb
def renders_flash(message)
      regexp = Regexp.new(message.gsub(' ', '\\\+'))
      assert cookies['flash'] =~ regexp,
        "Flash message does NOT MATCH: #{message}\n" +
        "  We got flash cookie: #{cookies['flash']}\n  what doesn't match to our test regexp: #{regexp}"
      cookies.delete :flash
    end
# Testing cookie based flash message.
#
# Example usage:
#   renders_flash 'It was successfully updated!'
#
Testing cookie based flash message.
Example usage:
renders_flash 'It was successfully updated!'
Testing cookie based flash message . Example usage : renders_flash ' It was successfully updated! '
def renders_flash(message)
      regexp = Regexp.new(message.gsub(' ', '\\\+'))
      assert cookies['flash'] =~ regexp,
        "Flash message does NOT MATCH: #{message}\n" +
        "  We got flash cookie: #{cookies['flash']}\n  what doesn't match to our test regexp: #{regexp}"
      cookies.delete :flash
    end
def renders_flash ( message ) regexp = Regexp . new ( message . gsub ( ' ' , '\\\+' ) ) assert cookies [ 'flash' ] =~ regexp , "Flash message does NOT MATCH: #{message}\n" + "  We got flash cookie: #{cookies['flash']}\n  what doesn't match to our test regexp: #{regexp}" cookies . delete :flash end
Testing cookie based flash message.
Testing cookie based flash message .
message