For full-stack integration tests, I'd try to do things through the UI (falling back to putting scenario-specific data straight into the DB only if there is a really good reason to break from full-stack). They're going to be relatively slow anyway.
Keep in mind that at that level of testing you can probably write scenarios that each assert correct behaviour of a bunch of stuff... you don't need to keep it to one assertion per scenario, so slow setup actions have more of a chance to earn their keep. Cheers, Chris On Fri, May 9, 2014 at 11:17 AM, Rohan <rohan.mitch...@gmail.com> wrote: > Thanks, Pat! > > On the topic of avoiding factories, I can see the benefit for unit tests, > but I'm curious about the recommendation for integration/acceptance specs, > where it seems that a complex tree of objects is often required, since by > definition, you're integrating many parts. I could see that being constructed > through a factory or a factory-like method, or directly through the UI > (which would be impractically slow and couple the spec to parts of the site > that aren't the focus of the test). Any thoughts? > > Rohan > > > On Wednesday, 7 May 2014 14:57:08 UTC+10, Pat Allan wrote: > >> The videos of last month’s talks are now online: >> >> Rhiana: https://vimeo.com/93790803 >> Steve: https://vimeo.com/93790802 >> Pete: https://vimeo.com/94119136 >> >> — >> Pat >> >> On 2 May 2014, at 11:59 am, Rohan <rohan.m...@gmail.com> wrote: >> >> Awesome, thanks! >> >> >> On Thursday, 1 May 2014 21:46:36 UTC+10, Pat Allan wrote: >>> >>> Hi Rohan >>> >>> The talks were definitely recorded, but they’ve not been uploaded yet. >>> >>> And while Pete did have some slides, they’re going to be far more useful >>> with the discussion around them. Hopefully we’ll have it online soon :) >>> >>> — >>> Pat >>> >>> On 30 Apr 2014, at 5:03 pm, Rohan <rohan.m...@gmail.com> wrote: >>> >>> I wasn't able to make it last Thursday, but as a fairly heavy factory >>> user, I'm interested in the alternative. Will talk videos be posted, or >>> Pete, do you have some slides you could post? >>> >>> Cheers, >>> Rohan >>> >>> >>> On Saturday, 19 April 2014 18:41:09 UTC+10, Pat Allan wrote: >>>> >>>> Hi everyone >>>> >>>> The Melbourne Ruby meet will be happening this Thursday evening, with >>>> our usual array of entertaining talks, delicious food (Vietnamese finger >>>> food), tasty beverages (both with and without alcohol), and delightful >>>> company (featuring your fine selves). >>>> >>>> WHEN: Thursday 24th April, arrive at 6pm for a 6:30pm start. >>>> WHERE: Inspire9, Level 1, 41-43 Stewart Street >>>> WHAT: Four speakers, plus socialising, food and drinks. >>>> >>>> Our line-up this month is: >>>> >>>> * Duncan Bayne: Building and debugging native Ruby extensions >>>> * Pete Yandell: Why you shouldn’t use test factories >>>> * Rhiana Heath: Accessibility - more than just alt tags >>>> * Steve Gilles: So you've decided to run a RubyConf >>>> >>>> To aid with reliable catering numbers, if you can RSVP via Meetup (or >>>> ping me off-list if you’re not a fan of Meetup) that’d be brilliant :) >>>> http://www.meetup.com/Ruby-On-Rails-Oceania-Melbourne/events/173468172/ >>>> >>>> >>>> This month, food is sponsored by Envato, Lookahead Search and >>>> Redbubble, the drinks by Zendesk, and the space by Inspire9. All perfect >>>> candidates for our Prime Minister’s knights and dames of the realm. >>>> >>>> What’s the catch, I hear you ask? Well, you’re stuck with me hosting, >>>> as Mario’s off to share his wisdom at RailsConf in Chicago! If you’ve any >>>> questions or thoughts, get in touch - I'm looking forward to seeing you all >>>> there :) >>>> >>>> — >>>> Pat >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby or Rails Oceania" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to rails-oceani...@googlegroups.com. >>> To post to this group, send email to rails-...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/rails-oceania. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby or Rails Oceania" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rails-oceani...@googlegroups.com. >> To post to this group, send email to rails-...@googlegroups.com. >> Visit this group at http://groups.google.com/group/rails-oceania. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rails-oceania+unsubscr...@googlegroups.com. > To post to this group, send email to rails-oceania@googlegroups.com. > Visit this group at http://groups.google.com/group/rails-oceania. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.