I think I would put it with the test.  My logic is, if it breaks (needs to 
change), the test will break.  You will look there first to see what happened.

On Jan 23, 2013, at 12:54 PM, Jim Coble wrote:

> One of my tests needs to be provided with a particular directory path.  While 
> I can code this path as a literal directly in the test spec, it seems to me 
> it might be better to have it in a configuration file somewhere so that I 
> have one place to maintain it and look for it.  Would spec_helper.rb be a 
> reasonable place to define it?  Is there a more customary place?  Note that I 
> am not trying to configure RSpec per se or even how RSpec runs the test.  
> Rather, I’m trying to provide some information (a character string) that the 
> test needs in order to run.
> Thanks.
> --Jim
>  
> Jim Coble
> Information Technology Services
> Perkins Library, Duke University
> Box 90196, Durham, NC 27708
> 919-660-5974 (voice); 919-668-2578 (fax)
> jim.co...@duke.edu
>  
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to