18 lines
409 B
Ruby
18 lines
409 B
Ruby
Dir[File.join(File.dirname(__FILE__), "webrat", "*.rb")].each do |file|
|
|
require File.expand_path(file)
|
|
end
|
|
|
|
module Webrat
|
|
VERSION = '0.2.1'
|
|
def self.root
|
|
defined?(RAILS_ROOT) ? RAILS_ROOT : Merb.root
|
|
end
|
|
end
|
|
|
|
if defined?(Merb)
|
|
puts "************ Booting merb mode"
|
|
require File.join(File.dirname(__FILE__), "boot_merb.rb")
|
|
else
|
|
require File.join(File.dirname(__FILE__), "boot_rails.rb")
|
|
end
|