Module: Gen::TestData

Defined in:
docs/api/stubs/generated_app.rb

Overview

What spin run gen writes into gen/test/data.rb (cybertrain/generator/test_data_emitter.rb) when the application has a test/ directory: the tables cybertrain test empties before each test and the rows of test/fixtures/*.yml it then inserts (Cybertrain::Test::Database). The values below are for a test/fixtures/articles.yml with the labels one and two (id: 42).