I've got up to this point all fine and dandy, but I'm getting an error with the unit testing. I've copied and pasted all of the code from the examples and I'm still getting the same error. I'm on Mac OS X 10.5 btw.
And my story_test.rb:
Hermes:shovell graham$ rake test:units
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.
(See full trace by running task with --trace)
Thanks a lot in advance!
require File.dirname(__FILE__) + '/../test_helper'
class StoryTest < Test::Unit::TestCase
s = Story.create(:name => nil)
s = Story.create(:link => nil)
s = Story.create(
:name => 'My test submission',
:link => 'http://www.testsubmission.com/')