Automatically require all of the page object files in the lib directory
This commit is contained in:
parent
9d25a68184
commit
e3412cbe94
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue