#78 open
Xavier Noria

update generated unit test example for Rails 2

Reported by Xavier Noria | December 30th, 2007 @ 02:18 PM | in Second Edition

There's a generated unit test example on page 568. In Rails 2 there's no fixture macro nor blank lines in the definition body:

require File.dirname(__FILE__) + '/../test_helper'

class CustomerTest < ActiveSupport::TestCase
  # Replace this with your real tests.
  def test_truth
    assert true
  end
end

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket