Learning Watir Ruby. Seeking wisdom. :)

Has anyone ever created a 'common' require file for a group of other files? 

# test_require.rb
# Common require file for all test files.  
# Separate file easily allows changing the version of Watir in one spot.

require 'rubygems'
require_gem 'watir', '<1.5.0'

-----------------------------------

And then in each test file

require 'test_require'

-----------------------------------

I suppose being able to switch the version of Watir used isn't that commonly 
needed, but what about the general idea of common require files. I don't see 
this used in ruby much. Is it a good/bad idea?
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to