Displaying 1 result from an estimated 1 matches for "find_by_concept_id".
2006 May 17
0
teardown not cleaning the BD?
...ord is deleted. When I look at the DB, the
record is still there.
The test goes like this:
def test_delete_concept
#make sure the concept record is present
assert_not_nil Concept.find(concepts(:entreprise).id)
#make sure the variations record is present
assert_not_nil Variation.find_by_concept_id
(concepts(:entreprise).id)
#find a client_variation
first_variation = Variation.find_by_concept_id
(concepts(:entreprise).id, :limit => 1)
#make sure it is present
assert_not_nil ClientVariation.find_by_variation_id
(first_variation.id)
#delete the record from the DB
g...