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
-
Obie January 7th, 2008 @ 05:58 PM
- → State changed from new to open
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 »
