webrat/lib/webrat.rb
Jeremy Burks 300880db2f get webrat+cucumber+merb working
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
2008-10-05 22:05:01 -05:00

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