Automatically require all of the page object files in the lib directory

This commit is contained in:
R. Tyler Croy 2012-07-30 04:38:17 -07:00
parent 9d25a68184
commit e3412cbe94
1 changed files with 2 additions and 2 deletions

View File

@ -21,6 +21,6 @@ Capybara.default_driver = :selenium
PAGE_OBJECTS_BASE = File.dirname(__FILE__) + "/../../lib/"
["job", "build", "slave"].each do |po|
require PAGE_OBJECTS_BASE + po
Dir["#{PAGE_OBJECTS_BASE}/*.rb"].each do |name|
require File.expand_path(name)
end