Colin Law wrote in post #962795:

> class AnnnetteTest < ActiveSupport::TestCase
>  def test_should_be_valid_with_story
> a = Annnette.new(:story => 'Neil')
> assert_nil a.errors.on(:story)
> end
>
> Colin

OK that worked so I changed the test in my other app (the one that 
matters) to

class StoryTest < ActiveSupport::TestCase
  def test_should_be_valid_with_author
    s = Story.create(:author => 'neil', :title => 'Story', :body => 
'test')
    assert s.errors.on(:author)
  end

When I run the test I still get

n...@baby6:~/********$ rake test:units
(in /home/neil/********)
/usr/bin/ruby1.8 -I"lib:test" 
"/usr/lib/ruby/1.8/rake/rake_test_loader.rb" "test/unit/comment_test.rb" 
"test/unit/user_mailer_test.rb" "test/unit/friendship_test.rb" 
"test/unit/helpers/friendship_helper_test.rb" 
"test/unit/helpers/profile_helper_test.rb" 
"test/unit/helpers/community_helper_test.rb" "test/unit/user_test.rb" 
"test/unit/story_test.rb"
ruby index.rb <data dir> <index dir>
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -I"lib:test" 
"/usr/lib/ru...]

Gleble

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to