Skip to content

Instantly share code, notes, and snippets.

@adkron
Created January 12, 2009 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adkron/46205 to your computer and use it in GitHub Desktop.
Save adkron/46205 to your computer and use it in GitHub Desktop.
Webrat.configure do |config|
config.mode = :rails
end
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
require 'webrat'
class Test::Unit::TestCase
self.use_transactional_fixtures = true
self.use_instantiated_fixtures = false
# PLEASE DON'T USE FIXTURES
end
Webrat.configure do |config|
config.mode = :selenium
config.selenium_environment = 'test'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment