20 lines
457 B
Ruby
20 lines
457 B
Ruby
require "rubygems"
|
|
|
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
|
|
|
|
module Webrat
|
|
VERSION = '0.2.2'
|
|
|
|
def self.root
|
|
defined?(RAILS_ROOT) ? RAILS_ROOT : Merb.root
|
|
end
|
|
end
|
|
|
|
require "webrat/core"
|
|
|
|
# TODO: This is probably not a good idea.
|
|
# Probably better for webrat users to require "webrat/rails" etc. directly
|
|
if defined?(RAILS_ENV)
|
|
require "webrat/rails"
|
|
end
|