300880db2f
i put this in env.rb require 'webrat' World do w = Object.new w.extend(Merb::Test::ViewHelper) w.extend(Merb::Test::RouteHelper) w.extend(Merb::Test::ControllerHelper) w.extend(Webrat::MerbTest) end
17 lines
369 B
Ruby
17 lines
369 B
Ruby
Dir[File.join(File.dirname(__FILE__), "webrat", "*.rb")].each do |file|
|
|
require File.expand_path(file)
|
|
end
|
|
|
|
module Webrat
|
|
VERSION = '0.2.2'
|
|
def self.root
|
|
defined?(RAILS_ROOT) ? RAILS_ROOT : Merb.root
|
|
end
|
|
end
|
|
|
|
if defined?(Merb)
|
|
require File.join(File.dirname(__FILE__), "boot_merb.rb")
|
|
else
|
|
require File.join(File.dirname(__FILE__), "boot_rails.rb")
|
|
end
|