Sha256: 4ac939d9957e573c92f2df1f8a1c33b95451b9ac2c60679b1c8a41cfa0fbcc0c

Contents?: true

Size: 848 Bytes

Versions: 39

Compression:

Stored size: 848 Bytes

Contents

rspec-rails supports integration with Capybara out of the box by adding
its Capybara::DSL (visit/page) and Capybara::RSpecMatchers to the
examples in the applicable directories.

## Capybara::DSL

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

Capybara::DSL is added to examples in:

* spec/features

## Capybara::RSpecMatchers

Exposes matchers used to specify expected HTML content (e.g. `should_not have_selector` will work correctly).

Capybara::RSpecMatchers is added to examples in:

* spec/features
* spec/controllers
* spec/views
* spec/helpers
* spec/mailers

## Upgrading to Capybara-3.x

Consult the official [Upgrading from Capybara 2.x to 3.x](https://github.com/teamcapybara/capybara/blob/master/UPGRADING.md#upgrading-from-capybara-2x-to-3x) guide.

Version data entries

39 entries across 37 versions & 6 rubygems

Version Path
rspec-rails-7.1.0 Capybara.md
rspec-rails-7.0.2 Capybara.md
rspec-rails-7.0.1 Capybara.md
rspec-rails-7.0.0 Capybara.md
rspec-rails-6.1.5 Capybara.md
rspec-rails-6.1.4 Capybara.md
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rspec-rails-6.1.3/Capybara.md
rspec-rails-6.1.3 Capybara.md
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/rspec-rails-6.0.4/Capybara.md
rspec-rails-6.1.2 Capybara.md
rspec-rails-6.1.1 Capybara.md
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rspec-rails-5.1.1/Capybara.md
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rspec-rails-5.1.2/Capybara.md
rspec-rails-6.1.0 Capybara.md
rspec-rails-6.0.4 Capybara.md
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rspec-rails-5.1.2/Capybara.md
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rspec-rails-5.1.1/Capybara.md
rspec-rails-6.0.3 Capybara.md
rspec-rails-6.0.2 Capybara.md
rspec-rails-6.0.1 Capybara.md