jquery_selector_assertions.rb

Path: lib/jquery_selector_assertions.rb
Last Update: Thu Dec 22 21:49:36 +0000 2016
 jQuery Selector Assertions (modifications to the prototype/scriptaculous assertions)

  From http://pastie.org/303776
  1. Make sure to use ’#’ prefix when referring to element IDs in assert_select_rjs(), like this:
            assert_select_rjs :replace_html, '#someid'
    

    instead of prototype convention:

             assert_select_rjs :replace_html, 'someid'
    

We monkey-patch some RJS-matching constants for assert_select_rjs to work with jQuery-based code as opposed to Prototype‘s:

[Validate]