Permalink
Browse files

Highlight general-purpose nature of the DSL in the readme.

  • Loading branch information...
1 parent 07d4beb commit 903167165e6823d4f32b2fef4e95dee2174a4ed6 @nruth nruth committed May 3, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
View
@@ -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

0 comments on commit 9031671

Please sign in to comment.