lib/watirspec.rb in watir-6.0.2 vs lib/watirspec.rb in watir-6.0.3
- old
+ new
@@ -11,10 +11,11 @@
def html
@html ||= File.expand_path("../../spec/watirspec/html", __FILE__)
end
def run!
+ load_support
WatirSpec::Runner.execute_if_necessary
end
def url_for(str)
File.join(host, str)
@@ -24,9 +25,16 @@
@host ||= "http://#{Server.bind}:#{Server.port}"
end
def unguarded?
@unguarded ||= false
+ end
+
+ def load_support
+ root = File.expand_path("../../spec/watirspec", __FILE__)
+ Dir.glob("#{root}/support/**/*.rb").each do |file|
+ require file
+ end
end
def implementation
@implementation ||= (
imp = WatirSpec::Implementation.new