Ruby on Rails latest stable (v4.0.2) - 1 note - Superclass: Object

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

No documentation

This class has no description. You can help the Ruby on Rails community by adding new notes.

Show files where this class is defined (1 file)
Register or log in to add new notes.
February 13, 2009
3 thanks

New test syntax

You can use either one and even mix in the same test case if you want:

class Test < Test::Unit::TestCase
  # old way to define a test method (prefix with test_)
  def test_should_be_valid_without_content
    assert Comment.new.valid?

  # new way to define a test
  test "should be valid without content" do
    assert Comment.new.valid?