Hermes

A few testing facilities built on top of Capybara and ActiveSupport::TestCase.

Requires Rails >= 4 and Capybara >= 2.2.

TODO

  • Improve this README mentioning each module and how to configure it to work with Rspec and/or Rails.

Perf

Require perf optimization for your test suite with “hermes/perf”

Capybara tips

We recommend adding this to ‘spec/support`:

Capybara.add_selector :record do
  xpath { |record| XPath.css("#" + ActionView::RecordIdentifier.dom_id(record)) }
  match { |record| record.is_a?(ActiveRecord::Base) }
end

Bugs and Features

If you discover any bugs or add any features, please let us know using GitHub’s tracker.

github.com/plataformatec/hermes/issues

License

MIT License. Copyright 2011 Plataformatec. blog.plataformatec.com.br