Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9037: doc_assert_tag_cosmetics.diff

File doc_assert_tag_cosmetics.diff, 1.3 kB (added by mfazekas, 1 year ago)
  • actionpack/lib/action_controller/assertions/tag_assertions.rb

    old new  
    3737      #     to match on the children, and only matching children will be 
    3838      #     counted. 
    3939      # * <tt>:content</tt>: the textual content of the node must match the 
    40       #     given value. This will not match HTML tags in the body of a 
    41       #     tag--only text. 
     40      #   given value. This will not match HTML tags in the body of a 
     41      #   tag--only text. 
    4242      # 
    4343      # Conditions are matched using the following algorithm: 
    4444      # 
     
    9090      #              :descendant => { :tag => "span", 
    9191      #                               :child => /hello world/ } 
    9292      # 
    93       # <strong>Please note</strong: #assert_tag and #assert_no_tag only work 
     93      # <b>Please note</b>: #assert_tag and #assert_no_tag only work 
    9494      # with well-formed XHTML. They recognize a few tags as implicitly self-closing 
    9595      # (like br and hr and such) but will not work correctly with tags 
    9696      # that allow optional closing tags (p, li, td). <em>You must explicitly