Ruby on Rails latest stable (v5.2.3) - 0 notes

Adds simple access to sample files called file fixtures. File fixtures are normal files stored in ActiveSupport::TestCase.file_fixture_path.

File fixtures are represented as Pathname objects. This makes it easy to extract specific information:

file_fixture("example.txt").read # get the file's content
file_fixture("example.mp3").size # get the file size
Show files where this module is defined (1 file)
Register or log in to add new notes.