Skip to content

Commit 5efc92a

Browse files
committed
added example capybara script
1 parent e6d816a commit 5efc92a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/integration/google_test.rb

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'rubygems'
2+
require 'capybara/dsl'
3+
4+
Capybara.run_server = false
5+
Capybara.current_driver = :selenium
6+
Capybara.app_host = 'http://www.google.com'
7+
8+
module MyCapybaraTest
9+
class Test
10+
include Capybara
11+
def test_google
12+
visit('/')
13+
input "hello"
14+
end
15+
end
16+
end
17+
18+
t = MyCapybaraTest::Test.new
19+
t.test_google

0 commit comments

Comments
 (0)