Hi
My main rakefile has some tasks to stop and start selenuim as follows:
require 'selenium/rake/tasks'
Selenium::Rake::RemoteControlStartTask.new do |rc|
rc.port = 4444
rc.timeout_in_seconds = 3 * 60
rc.background = false
rc.wait_until_up_and_running = true
rc.additional_args << "-singleWindow"
end
Selenium::Rake::RemoteControlStopTask.new do |rc|
rc.host = "localhost"
rc.port = 4444
rc.timeout_in_seconds = 3 * 60
end
This forces the requirement to have the selenuim gem installed to use rake regardless of the rails environment. Where can I put this code so it will only be loaded when the rails environment is set to test?
Rails 2.3
Cheers