Lighthouse has a new layout.
Prefer the old one? Return to the old layout,
and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
Using Fixtures docs in API RDoc needs work
#1825
The current "Using Fixtures" documentation notes three methods
of accessing fixture data from within Rails tests:
By using a hash stored in an instance variable named after the
fixture e.g. @blobs['foo']['name']
By using an instance variable named after the record name, e.g.
@foo.name
By using a dynamically-created object, e.g.
blobs(:foo).name
However, the default has been to not instantiate instance
variables, which means only method #3 will work.
Furthermore, all examples don't use the test method
for each test case.
Recommend moving method #3 to be the primary method, and note how to
enable methods #1 and #2. Update examples to show this, using the new
test methods.