diff options
author | Timm <kaspth@gmail.com> | 2013-08-01 23:18:18 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:00 +0200 |
commit | 1bc0bece5b7f51119905e292e6ff9ffb04d15c43 (patch) | |
tree | 75af62a790ddd3b33171aa811bd1efe91539c967 /actionpack/lib | |
parent | 6fd74dc00e8207b981d982bc8b5842859c2589a6 (diff) | |
download | rails-1bc0bece5b7f51119905e292e6ff9ffb04d15c43.tar.gz rails-1bc0bece5b7f51119905e292e6ff9ffb04d15c43.tar.bz2 rails-1bc0bece5b7f51119905e292e6ff9ffb04d15c43.zip |
Removed mention of css_select supporting substitution values. It is not tested anywhere.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/selector.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb index fea9b8daa0..e6561fc5d9 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb @@ -35,10 +35,7 @@ module ActionDispatch # root element and any of its children. # Returns an empty Nokogiri::XML::NodeSet if no match is found. # - # The selector may be a CSS selector expression (String) or an expression - # with substitution values (Array). - # Substitution uses a custom pseudo class match. - # Pass in whatever attribute you want to match (enclosed in quotes) and a ? for the substitution. + # The selector may be a CSS selector expression (String). # # # Selects all div tags # divs = css_select("div") @@ -58,9 +55,6 @@ module ActionDispatch # inputs = css_select(form, "input") # ... # end - # - # # Selects div tags with ids matching regex - # css_select "div:match('id', ?)", /\d+/ def css_select(*args) raise ArgumentError, "you at least need a selector" if args.empty? |