public Method

TestText__Format.test_space_only

There's no documentation for this item.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 1420
def test_space_only
  assert_equal("", Text::Format.new.format(" "))
  assert_equal("", Text::Format.new.format("\n"))
  assert_equal("", Text::Format.new.format("        "))
  assert_equal("", Text::Format.new.format("    \n"))
  assert_equal("", Text::Format.new.paragraphs("\n"))
  assert_equal("", Text::Format.new.paragraphs(" "))
  assert_equal("", Text::Format.new.paragraphs("        "))
  assert_equal("", Text::Format.new.paragraphs("    \n"))
  assert_equal("", Text::Format.new.paragraphs(["\n"]))
  assert_equal("", Text::Format.new.paragraphs([" "]))
  assert_equal("", Text::Format.new.paragraphs(["        "]))
  assert_equal("", Text::Format.new.paragraphs(["    \n"]))
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.