public Method

TestText__Format.test_tag_text

There's no documentation for this item.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 1166
def test_tag_text
  assert_nothing_raised { @format_o = Text::Format.new }
  assert_equal([], @format_o.tag_text)
  assert_equal(@format_o.format(GETTYSBURG),
               Text::Format.new.format(GETTYSBURG))
  assert_nothing_raised {
    @format_o.tag_paragraph = true
    @format_o.tag_text = ["Gettysburg Address", "---"]
  }
  assert_not_equal(@format_o.format(GETTYSBURG),
                   Text::Format.new.format(GETTYSBURG))
  assert_not_equal(@format_o.paragraphs([GETTYSBURG, GETTYSBURG]),
                   Text::Format.new.paragraphs([GETTYSBURG, GETTYSBURG]))
  assert_not_equal(@format_o.paragraphs([GETTYSBURG, GETTYSBURG,
                                         GETTYSBURG]),
                   Text::Format.new.paragraphs([GETTYSBURG, GETTYSBURG,
                                                GETTYSBURG]))
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.