small medium large xlarge

20 Oct 2010, 18:42
Thuy Tran (8 posts)

I’ve followed the Agile book very carefully and I’ve done the project twice now, but I still get the following when I try Task T in the book.

>ruby test/unit/cart_test.rb
>DEPRECATION WARNING: Giving :session_key to SessionStore is deprecated, please use :key instead. (called from new at /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/middleware_stack.rb:72)
DEPRECATION WARNING: protect_from_forgery only takes :only and :except options now. :digest and :secret have no effect. (called from /Users/username/agile/depot/app/controllers/application_controller.rb:26)
test/unit/cart_test.rb:14: undefined method `fixtures' for CartTest:Class (NoMethodError)

I know I’m using a different version of Rails, but is that the problem? If so, how do you fix it? I can’t find the solution online.

23 Oct 2010, 12:13
Jason B (2 posts)

I’m getting this too :\

18 Feb 2013, 13:17
Priyanka Pathak (1 post)

Hello Guys, Had same error and find solution as Replace ‘Test::Unit::TestCase’ with ‘ActiveRecord::TestCase’.

class CartTest < Test::Unit::TestCase with class CartTest < ActiveRecord::TestCase

You must be logged in to comment