1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Merge pull request #704 from nruth/patch-1

Highlight general-purpose nature of the DSL in the readme.
This commit is contained in:
Jonas Nicklas 2012-05-03 09:31:00 -07:00
commit 644853c6e4

View file

@ -587,10 +587,11 @@ the text of the `h1` to "Something", and this happened, this test would
pass. If you do not want this behaviour, you can set
`Capybara.automatic_reload` to `false`.
## Using the DSL in unsupported testing frameworks
## Using the DSL elsewhere
You can mix the DSL into any context by including <tt>Capybara::DSL</tt>:
```ruby
require 'capybara'
require 'capybara/dsl'
@ -610,6 +611,8 @@ module MyModule
end
```
This enables its use in unsupported testing frameworks, and for general-purpose scripting.
## Calling remote servers
Normally Capybara expects to be testing an in-process Rack application, but you