[rspec-users] Where to put macros

2009-06-22 Thread Andrew Premdas
Recently I got some wonderful help from the list to create my NamedAddress module/macro which tests NamedAddresses for a number of different resources. The question I have is where should I put this module? At the moment I've got it in spec_helper, but this feels a bit messy Many thanks Andrew

Re: [rspec-users] Where to put macros

2009-06-22 Thread David Chelimsky
On Mon, Jun 22, 2009 at 11:28 AM, Andrew Premdasaprem...@gmail.com wrote: Recently I got some wonderful help from the list to create my NamedAddress module/macro which tests NamedAddresses for a number of different resources. The question I have is where should I put this module? At the moment

Re: [rspec-users] Where to put macros

2009-06-22 Thread Ben Mabey
On Jun 22, 2009, at 10:37 AM, David Chelimsky wrote: On Mon, Jun 22, 2009 at 11:28 AM, Andrew Premdasaprem...@gmail.com wrote: Recently I got some wonderful help from the list to create my NamedAddress module/macro which tests NamedAddresses for a number of different resources. The

Re: [rspec-users] Where to put macros

2009-06-22 Thread Stephen Eley
On Mon, Jun 22, 2009 at 12:37 PM, David Chelimskydchelim...@gmail.com wrote: The convention that I see emerging is to keep macros, helpers, and any other spec supporting material in spec/support/macros, spec/support/matchers, etc. +1 from me too. I've been calling my directory spec/helpers,

Re: [rspec-users] Where to put macros

2009-06-22 Thread Stefan Kanev
On Mon, Jun 22, 2009 at 7:37 PM, David Chelimsky dchelim...@gmail.comwrote: On Mon, Jun 22, 2009 at 11:28 AM, Andrew Premdasaprem...@gmail.com wrote:What would folks think if that was included in the generated spec_helper in spec-rails? I, while not a regular patron in this mailing list, +1