Displaying 3 results from an estimated 3 matches for "cart_test".
2006 Jun 25
1
Unit Testing failure
When I run the unit testing code in Unit Testing Models chapter of the Agile Rails book, I get the
following error:
$ ruby test/unit/cart_test.rb
Loaded suite test/unit/cart_test
Started
F.
Finished in 0.21806 seconds.
1) Failure:
test_add_duplicate_product(CartTest) [test/unit/cart_test.rb:22]:
<4690> expected but was
<3579>.
2 tests, 3 assertions, 1 failures, 0 errors
require File.dirname(__FILE__) + ''/../tes...
2006 May 19
3
new to rails; problem with testing section in Agile book
Hello, I should give the expected disclaimer that I am brand new to
rails and am going through the Agile web development with Rails book
right now. I am in the testing section and I can''t get past an error.
this is my cart_test.rb test file:
require File.dirname(__FILE__) + ''/../test_helper''
class CartTest < Test::Unit::TestCase
fixtures :products
def setup
@cart = Cart.new
end
# Replace this with your real tests.
def test_add_unique_products
@cart.add_product products(:version_control_boo...
2006 Nov 07
1
Memory consumption too high
...-task=test:units
(in D:/dev/src/booksmart)
rcov.cmd -o "D:/dev/src/booksmart/coverage/units" -T -x
"rubygems/*,rcov*" --rai
ls -Ilib;test
"D:/dev/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test
_loader.rb" "test/unit/book_test.rb" "test/unit/cart_test.rb"
"test/unit/credit_
card_test.rb" "test/unit/line_item_test.rb" "test/unit/note_test.rb"
"test/unit/
notifications_test.rb" "test/unit/publisher_test.rb"
"test/unit/purchase_test.rb
" "test/unit/user_test.rb" "tes...