Skip to content

Commit

Permalink
better capy integration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Oct 14, 2012
1 parent 0f38c85 commit 9af089c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Capybara.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ Capybara 1.x and Capybara >= 2.x.

Note that you need to require "capybara/rspec" for this integration to work.

## Capybara::DSL

Adds the `visit` and `page` methods, which work together to simulate a
`get` and provide access to the result (via `page`).

## Capybara::RSpecMatchers

Exposes matchers used to specify expected HTML content (e.g. `have_selector`).

## Capybara 1.x

Capybara::DSL is added to examples in:
Expand Down Expand Up @@ -44,12 +53,8 @@ Capybara::DSL (visit/page) alongside the rack-test DSL
and spec/controllers. As of rspec-2.11.1 and capybara-2.0.0.beta2, these
are separated as follows:

* Capybara::DSL is included
** `spec/features`

* rack-test DSL is included in
** `spec/requests`
** `spec/controllers`
* Capybara::DSL is included `spec/features`
* rack-test DSL is included in `spec/requests` and `spec/controllers`

Capybara::RSpecMatchers is added to examples in:

Expand Down

0 comments on commit 9af089c

Please sign in to comment.