Creating RSpec factory objects for the ENTIRE test suite

9 views
Skip to first unread message

Jason Hsu, Ruby on High Speed Rails

unread,
Jun 2, 2018, 7:28:49 PM6/2/18
to Ruby on Rails: Talk
There are plenty of examples on how to create RSpec factory objects for just one set of tests.

Is there a way to create RSpec factory objects that are good across ALL tests (including ALL integration and controller tests)?  This is necessary for a project to work on, because the process of creating some of these objects involves parsing large spreadsheet files.  Having to create these objects over and over again takes too long.  Thus, I need a way to create these objects just once and use them for all tests that need them.
Reply all
Reply to author
Forward
0 new messages