Open_session for functional tests; should it be moved or use

Hi all,

I’m chewing through writing some functional tests for an app at the
moment, and it occurs to me that open_session could be used to help
write single-controller tests as well as the integration ones. Used as
described here[1]; it’s an extremely useful idiom.

Any thoughts? Should it be moved, or generally made available, or am I
missing the point here?



chris parsons, director eden development
[email protected]
0845 0097 094 po box 425, winchester, so23 0wy, uk

This electronic message and all contents contain information from
the sender which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for
the addressee(s) only. If you are not an addressee, any copying,
disclosure, distribution or use of the contents of this message is
prohibited. If you have received this electronic message in error,
please notify the sender by reply e-mail and destroy the original
message and all copies. The sender does not accept liability for
any errors or omissions.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs