tracks/features/support/selenium.rb

19 lines
686 B
Ruby
Raw Normal View History

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
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
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-20 09:00:04 +02:00
config.selenium_server_address = "localhost"
2010-10-16 16:45:08 +02:00
# config.selenium_server_port = "4444"
end
Cucumber::Rails::World.use_transactional_fixtures = false
end