2010-07-27 23:32:22 +02:00
|
|
|
if ENV["RAILS_ENV"] == "selenium"
|
|
|
|
|
puts "Configuring to use Selenium with Webrat for Cucumber stories"
|
|
|
|
|
Webrat.configure do |config|
|
|
|
|
|
config.mode = :selenium
|
2010-10-16 16:45:08 +02:00
|
|
|
|
2010-07-27 23:32:22 +02:00
|
|
|
config.application_environment = :selenium
|
2010-10-16 16:45:08 +02:00
|
|
|
# use only if you run a separate rails test server instance and do not
|
|
|
|
|
# want webrat to start one for you
|
2010-10-22 11:55:54 +02:00
|
|
|
# config.application_port = 3001
|
2010-10-16 16:45:08 +02:00
|
|
|
|
2010-07-27 23:32:22 +02:00
|
|
|
config.selenium_browser_startup_timeout = 30
|
|
|
|
|
# use only if you run a separate selenium server instance and do not
|
|
|
|
|
# want webrat to start one for you
|
2010-10-24 23:19:11 +02:00
|
|
|
# config.selenium_server_address = "localhost"
|
2010-10-16 16:45:08 +02:00
|
|
|
# config.selenium_server_port = "4444"
|
2010-07-27 23:32:22 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Cucumber::Rails::World.use_transactional_fixtures = false
|
2010-10-24 23:19:11 +02:00
|
|
|
end
|