public Method

TestText__Format.test_center

There's no documentation for this item.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 1397
def test_center
  assert_nothing_raised { @format_o = Text::Format.new }
  assert_nothing_raised do
    ct = @format_o.center(GETTYSBURG.split("\n")).split("\n")
    assert_match(/^    Four score and seven years ago our fathers brought forth on this/, ct[0])
    assert_match(/^                       not perish from the earth./, ct[-3])
  end
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.