Displaying 1 result from an estimated 1 matches for "concepttest".
Did you mean:
concept_test
2006 Apr 30
0
weird error when running my unit tests
...thod to return
only the active concepts)
Concept.find_all_inactive returns 1 concept
Concept.find_all_active_and_inactive returns 3 concepts
And @concepts.size returns 3
When I run the first test, there is no error.
When I run the second test, I get this error:
1) Error:
test_find_all_inactive(ConceptTest):
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.size
concept_test.rb:36:in `test_find_all_inactive''
I dont understand! Why is @concepts.size working in the first test and
n...