Created
May 27, 2011 06:41
-
-
Save refractalize/994760 to your computer and use it in GitHub Desktop.
env.rb for running Capybara for non-rails/rack apps.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capybara' | |
require 'capybara/dsl' | |
Capybara.current_driver = :selenium | |
Capybara.app_host = 'localhost:3000' | |
Capybara.default_selector = :css | |
include Capybara::DSL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't have any rack based specification in the configuration. The above was used to test java based web app. Indeed it can be used against any web app to launch IE.