Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Capybara driver for celerity

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 capybara-celerity.gemspec
README.md

Capybara Celerity Driver

A driver for Capybara using Celerity. It uses HtmlUnit a browser for Java programs.

NOTE that Celerity only works on JRuby, thus applies to this driver as well.

Install

jruby -S gem install capybara-celerity

Setup

Setup the gem in Your Gemfile:

gem 'capybara-celerity', :platforms => :jruby

Set the driver in Your spec_helper.rb/test_helper.rb:

Capybara.javascript_driver = :celerity

or even better set the driver only for JRuby :

Capybara.javascript_driver = :celerity if defined?(JRUBY_VERSION)

License

Copyright (c) 2011 Gabriel Sobrinho, released under the MIT license.

Something went wrong with that request. Please try again.