Displaying 1 result from an estimated 1 matches for "test_sometest".
Did you mean:
test_some_test
2006 Jan 28
1
Unit Tests Take 2
...e, and maybe only a core developer can answer.
In 1.0, use_instantiated_fixtures is turned off by default. What is the new
best-practice for not tying your tests to your test data?
Before you would use:
In clients.yml
first_client:
id: 1
name: Fred
In a test case:
def test_sometest
assert_equal @first_client.name, @client.name
end
With this setting turned off be default, for obvious reasons, is there a
different method of doing the test so it is not dependent on the actual
data?
Thanks guys.
Bob Silva
http://www.railtie.net/
-------------- next part -----...