search for: case_number

Displaying 1 result from an estimated 1 matches for "case_number".

2006 Jan 16
2
My first test - named fixture not autoloading instance variable
...39;' class CaseTest < Test::Unit::TestCase fixtures :cases def setup @case = Case.find(1) end # Replace this with your real tests. def test_verify_schema_has_correct_fields assert_kind_of Case, @case assert_equal 1, @case.id assert_equal "F-06-101", @case.case_number assert_equal @first.case_number, @case.case_number end ===== The first 2 assert_equal statements are working fine and demonstrate the basic table logic is fine and that my fixture is working. The third one is failing because @first is nil. Per the book @first should be automatically created...