What version of Rails are you using?


On Jul 2, 1:56 pm, Peter Hermansson <rails-mailing-l...@andreas-s.net>
wrote:
> Hi, I am trying to follow the book 'Beginning Ruby on Rails e-commerce'
> examples.
>
> When I come to unit testing I get an error message:
> C:/Ruby/bin/ruby.exe -I"lib;test"
> "C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
> "test/unit/author_test.rb" "test/unit/helpers/about_helper_test.rb"
> C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in
> `load_missing_constant': uninitialized constant Test::Unit::Testcase
> (NameError)
>
> My test/unit/author_test.rb looks like this:
>
> require File.dirname(__FILE__) + ' /../test_helper'
>
> class AuthorTest < Test::Unit::Testcase
>   fixtures :authors
>   def test_name
>     author=Author.create(:first_name => 'Joel',
>                          :last_name => 'Spolsky')
>
>     assert_equal 'Joel Spolsky', author.name
>   end
> end
>
> Why do I get the error message ?
> --
> Posted viahttp://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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to