[rspec-users] Test configuration information
pedzsan at gmail.com
Wed Jan 23 19:51:38 UTC 2013
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.
> Jim Coble
> Information Technology Services
> Perkins Library, Duke University
> Box 90196, Durham, NC 27708
> 919-660-5974 (voice); 919-668-2578 (fax)
> Jim.coble at duke.edu
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users