I've been reading Simply Rails 2 (thanks Sitepoint for having a PDF version!).

I noticed that what it says is the default unit test for a model in story_test.rb is different from what I had. It said it would be something like:

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

class StoryTest < ActiveSupport::TestCase
  def test_for_truth
    assert true
  end
end
Mine's something more like:

Code:
require 'test_helper'

class StoryTest < ActiveSupport::TestCase
  test "for truth" do
    assert true
  end
end
I'm assuming it's because Rails was version 2.0.x when the book was written, and now it's 2.2.x. But I wanted to make sure nothing else has changed.

Everything the book says works, though I have changed all of the methods to the blocks instead, but I don't know if anything else is outdated.