From 1bc0bece5b7f51119905e292e6ff9ffb04d15c43 Mon Sep 17 00:00:00 2001 From: Timm Date: Thu, 1 Aug 2013 23:18:18 +0200 Subject: Removed mention of css_select supporting substitution values. It is not tested anywhere. --- actionpack/lib/action_dispatch/testing/assertions/selector.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'actionpack/lib') 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? -- cgit v1.2.3