Ruby on Rails
Saturday, June 2, 2018
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.
-- 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment