public Method

TestText__Format.test_text

There's no documentation for this item.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 1338
def test_text
  assert_nothing_raised { @format_o = Text::Format.new }
  assert_equal([], @format_o.text)
  assert_nothing_raised { @format_o.text = "Test Text" }
  assert_equal("Test Text", @format_o.text)
  assert_nothing_raised { @format_o.text = ["Line 1", "Line 2"] }
  assert_equal(["Line 1", "Line 2"], @format_o.text)
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.