search for: vc_book

Displaying 2 results from an estimated 2 matches for "vc_book".

2006 Apr 21
2
NoMethodError with test_read_with_hash
...t have expected an instance of Array. The error occured while evaluating nil.[] test/unit/product_test.rb:39:in `test_read_with_hash'' 4 tests, 15 assertions, 0 failures, 1 errors Below is my code for the the method: def test_read_with_hash assert_kind_of Product, @product vc_book = @products["version_control_book"] assert_equal vc_book["id"], @product.id assert_equal vc_book["title"], @product.title assert_equal vc_book["description"], @product.description assert_equal vc_book["image_url"], @product.price...
2006 Mar 09
4
Strange Unit Testing error - newbie question
...fixtures. My "products.yml" fixture file is exactly as downloaded from the Agile Web Dev site, I''ve checked it for syntax and spelling and tabs-instead-of-spaces and the like. "product_test.rb", in the method "test_read_with_hash" contains this line: vc_book = @products["version_control_book"] When I run product_test.rb, I get a NoMethodError on this line: NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[] test/unit/product_test...