Creating RSpec factory objects for the ENTIRE test suite

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Creating RSpec factory objects for the ENTIRE test suite

Jason Hsu, Ruby on High Speed Rails
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.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/eb23344d-a21a-497b-b78c-4768f1528479%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.