Created
May 17, 2011 23:11
-
-
Save cmeiklejohn/977624 to your computer and use it in GitHub Desktop.
minimal capybara use outside of rails
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 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara-webkit' | |
Capybara.run_server = false | |
Capybara.current_driver = :webkit | |
Capybara.app_host = 'http://www.google.com' | |
module MyCapybaraTest | |
class Test | |
include Capybara | |
def test_google | |
visit('/') | |
end | |
end | |
end | |
t = MyCapybaraTest::Test.new | |
t.test_google |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment