Permalink
Browse files

Remove documentation about `match` option

The documentation isn't correct anymore, since matching on symbols
like this is no longer allowed. `match` is such an obscure option
that it does not need to be mentioned in the README anyway.
  • Loading branch information...
1 parent 6b77fb8 commit 5ca009a27a17769f325f5a0b0074cab52115c5b2 @jnicklas jnicklas committed Mar 25, 2013
Showing with 0 additions and 20 deletions.
  1. +0 −20 README.md
View
@@ -784,25 +784,6 @@ find(:row, 3)
find(:flash_type, :notice)
```
-You can specify an optional match option which will automatically use the
-selector if it matches the argument:
-
-```ruby
-Capybara.add_selector(:id) do
- xpath { |id| XPath.descendant[XPath.attr(:id) == id.to_s] }
- match { |value| value.is_a?(Symbol) }
-end
-```
-
-Now use it like this:
-
-```ruby
-find(:post_123)
-```
-
-This :id selector is already built into Capybara by default, so you don't
-need to add it yourself.
-
## Beware the XPath // trap
In XPath the expression // means something very specific, and it might not be what
@@ -887,7 +868,6 @@ additional info about how the underlying driver can be configured.
To set up a development environment, simply do:
```bash
-git submodule update --init
bundle install
bundle exec rake # run the test suite
```

0 comments on commit 5ca009a

Please sign in to comment.