aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions/selector.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug by switching to Loofah fragment instead of document.Timm2014-06-161-2/+2
|
* Changed css_select to not count on multiple selectors. Fixed bug in ↵Timm2014-06-161-8/+10
| | | | determine_root_from where @selected was an Array. Changed assert_select_encoded to use a fragment instead of a document.
* Added a proper substitution context class. Changed ArgumentFilter to be a ↵Timm2014-06-161-34/+47
| | | | selector. It is now called HTMLSelector.
* Fixed nested assert_select bug. Trying to create a full document for a ↵Timm2014-06-161-1/+1
| | | | nested call that already had a document.
* Added implementation for substitution values via Nokogiri's custom pseudo ↵Timm2014-06-161-5/+35
| | | | classes.
* Readded some documentation about substitution values.Timm2014-06-161-2/+12
|
* Updated documentation to remove mention of HTML::Selector and clarify what ↵Timm2014-06-151-21/+9
| | | | is expected of a selector now.
* Readded html_document method since it is used integration tests.Timm2014-06-151-1/+5
|
* Changed filter_matches to return a new NodeSet instead of Array.Timm2014-06-151-1/+2
|
* Initialized @css_selector_is_second_argument in determine_root_from.Timm2014-06-151-0/+1
|
* Changed early return for filter_matches as well as reassigning matches. ↵Timm2014-06-151-6/+6
| | | | Meddled with initialize in ArgumentFilter.
* Removed redundant comments from assert_select.Timm2014-06-151-3/+1
| | | | Cleaned up a comment.
* Added assert_size_match! with the assertions for assert_select.Timm2014-06-151-14/+18
|
* Changed some documentation for css_select.Timm2014-06-151-1/+1
|
* Replaced fragment calls with document, since we assume the responses are ↵Timm2014-06-151-9/+8
| | | | complete documents.
* Added filter_matches to reduce line count in assert_select.Timm2014-06-151-24/+19
|
* Renamed Selector to ArgumentFilter. Put code from HTMLSelector to ↵Timm2014-06-151-59/+39
| | | | ArgumentFilter.
* Removed the custom selected proc. It's no longer needed.Timm2014-06-151-10/+8
|
* Updated selector to not have reponse_from_page.Timm2014-06-151-5/+6
|
* Changed css_select and pulled out response_from_page from Selector.Timm2014-06-151-23/+17
|
* Changed comparison from HTML::Node to Nokogiri::XML::Node in ↵Timm2014-06-151-1/+1
| | | | assert_select_encoded.
* Removed more redundant lines. Removed fix_content block that circumvented a ↵Timm2014-06-151-7/+1
| | | | bug in html-scanner.
* Removed more lines of code in assert_select.Timm2014-06-151-7/+6
|
* Simplified the first delete_if loop in assert_select to use Loofah's text ↵Timm2014-06-151-14/+13
| | | | method.
* Removed argument and root variable in assert_select proc.Timm2014-06-151-4/+2
|
* Changed name to selector. And a bunch of other things.Timm2014-06-151-60/+51
|
* The first attempt at abstracting argument parsing from selection methods.Timm2014-06-151-81/+114
|
* Remove surplus period from assertion messagesMarcus Stollsteimer2014-04-131-3/+3
|
* Swapped parameters of assert_equal in assert_selectVishal Lal2014-03-221-1/+1
|
* Mark unused variables and make some style fixesAgis Anastasopoulos2013-04-081-2/+2
| | | | It'd be a nice convention to mark the unused variables like this, now that Ruby 2 will issue no warnings for such vars being unused.
* Cleans and removes 'Examples' tag [ci skip]Alvaro Pereyra2012-12-011-2/+0
|
* 1.9 hash syntax changes to docsAvnerCohen2012-10-311-1/+1
|
* Move action_controller/vendor/html-scanner to action_viewPiotr Sarnacki2012-08-281-1/+2
| | | | | | This is another step in moving Action View's dependencies in Action Pack to Action View itself. Also, HtmlScanner seems to be better suited for views rather than controllers.
* load active_support/core_ext/object/inclusion in active_support/railsXavier Noria2012-08-021-1/+0
|
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-6/+0
|
* Remove the leading \n added by textarea on assert_selectSantiago Pastorino2012-03-301-0/+1
|
* Stop referring to Atom as "ATOM"Tom Stuart2012-02-051-1/+1
| | | | | | $ curl -s http://www.ietf.org/rfc/rfc4287 | grep -io ATOM | sort | uniq -c 582 atom 175 Atom
* Remove assert_select_feed from assert_select_encoded documentationTom Stuart2012-02-051-2/+2
| | | | | | This documentation came from the assert_select plugin, but the assert_select_feed method was omitted when the plugin was merged into Rails in 3142502964f94d6144312ae2c368b4c4589fa25a.
* Replaced all 'for' loops with Enumerable#eachNathan Broadbent2012-01-301-2/+2
|
* use assert_equal and assert_operatorAaron Patterson2012-01-061-5/+8
|
* fix assert_select_email to work on non-multipart emails as well as ↵Andrew Kaspick2011-08-111-2/+2
| | | | converting the Mail::Body to a string to prevent errors.
* Follow code conventions on docsSebastian Martinez2011-05-101-1/+1
|
* renames response_from_page_or_rjs -> response_from_page, and extracts the ↵Xavier Noria2011-04-131-58/+5
| | | | RJS in it
* removes assert_select_rjsXavier Noria2011-04-131-139/+1
|
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Remove more warnings on AP.Emilio Tagua2010-09-281-1/+2
|
* Avoid more uninitialized variable warnings.Emilio Tagua2010-09-281-1/+2
|
* @selected may not be defined here, avoid warning.Emilio Tagua2010-09-281-1/+1
|
* Remove more warnings shadowing outer local variable.Emilio Tagua2010-09-271-2/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>