Displaying 3 results from an estimated 3 matches for "test_read_with_hash".
2006 Apr 21
2
NoMethodError with test_read_with_hash
While running the product_test.rb test fixture in the Agile Web
Development book (p. 148), but when I run
ruby test/unit/product_test.rb, I get the following error:
1) Error:
test_read_with_hash(ProductTest):
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.rb:39:in `test_read_with_hash''
4 tests, 15 assertions, 0 failures, 1 errors
Below is...
2006 Mar 09
4
Strange Unit Testing error - newbie question
...d I''ve been learning from AGILE WEB
DEVELOPMENT WITH RAILS. Everything has been going smoothly until the
chapter on Unit Testing, where I''m getting some strange errors.
I''m up to page 141 in the Agile book, and attempting to run the test
program containing the method test_read_with_hash. The previous tests
work properly, but I don''t seem to be able to refer to the fixtures
through its variable.
The file "product_test.rb" contains the line "fixtures :products", which
says it should set up the variable @fixtures through which I can refer
to my fixt...
2005 Dec 23
2
SQLite in-memory
I left ":memory:" in database.yml for testing and the most simple
tests in the Agile book do not work (see trace below for test_truth).
Since that''s what comes with the distributed database.yml I suppose
it''s me doing something wrong.
Did someone get SQLite ":memory:" working? How does it grab the schema?
-- fxn
% rake test_units
(in