Skip to content

Commit

Permalink
Add some extra documentation on how to run the tests in the Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvandijk committed Oct 3, 2010
1 parent 1e59833 commit 9bc408c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
21 changes: 19 additions & 2 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,27 @@ When you want to use this driver to test a remote application. You have to set t

Note that I haven't tested this case for my self yet. The Capybara tests pass for this situation though so it should work! Please provide me with feedback if it doesn't.

## Running tests

Until this library is merged with capybara there needs to be local app and you need to add the following to your host file:

127.0.0.1 capybara-testapp.heroku.com

Run bundler

bundle install

Run the app with the following line:

bundle exec ruby -rrubygems lib/capybara/spec/extended_test_app.rb

Then you are ready to run the test like so

rake spec

Todo
----
* Make the redirect specs pass
* Add specs for local to remote redirect (functionality is there though and works in our case)
* Make the last 12 failing remote session spec pass, see remote_mechanize_spec and uncomment one line there to see them fail
* Test this driver with non-rack/non-ruby projects

Note on Patches/Pull Requests
Expand Down
4 changes: 0 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,5 @@
end
end

# Until this library is merge with capybara there needs to be local app and you need to add
# 127.0.0.1 capybara-testapp.heroku.com to your host file
# Run the app with the following line:
# ruby -rrubygems lib/capybara/spec/extended_test_app.rb
REMOTE_TEST_HOST = "capybara-testapp.heroku.com"
REMOTE_TEST_URL = "http://#{REMOTE_TEST_HOST}:8070"

0 comments on commit 9bc408c

Please sign in to comment.