webrat/init.rb

4 lines
82 B
Ruby

if (RAILS_ENV =~ /^test/) || RAILS_ENV == "selenium"
require "webrat/rails"
end