Method: TestText__Format#test_text

Defined in:
lib/action_mailer/vendor/text-format-0.6.3/text/format.rb

#test_textObject



1337
1338
1339
1340
1341
1342
1343
1344
# File 'lib/action_mailer/vendor/text-format-0.6.3/text/format.rb', line 1337

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