Displaying 1 result from an estimated 1 matches for "casetest".
Did you mean:
kasetest
2006 Jan 16
2
My first test - named fixture not autoloading instance variable
....
I''m using rails 1.0
I''ve created the fixture correctly I''m pretty sure because the test
database table is being populated per the fixture.
I have what I think is a simple unit test:
=========
require File.dirname(__FILE__) + ''/../test_helper''
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_e...