Saturday, November 20, 2010

[Rails] Re: Re: Re: Re: Re: Re: rake test:unit gives Command failed with status (1):

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

neil@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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate