Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed some inaccurate comments.

  • Loading branch information...
commit abb1e8018af3c1d50967526e395b45e4b047289c 1 parent 308b129
Jake authored
Showing with 2 additions and 13 deletions.
  1. +2 −13 lib/jquery_selector_assertions.rb
15 lib/jquery_selector_assertions.rb
View
@@ -3,19 +3,10 @@
#
# From http://pastie.org/303776
#
-# 1. Add this code to THE BEGINNING OF your test_helper.rb
-#
-# (I actually just added ...
-#
-# $:.unshift "#{RAILS_ROOT}/test/"
-# require "jquery_selector_assertions"
-#
-# to the beginning of my test/test_helper.rb)
-#
-# 2. Make sure to use '#' prefix when referring to element IDs in assert_select_rjs(),
+# 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 standard convention:
+# instead of prototype convention:
# assert_select_rjs :replace_html, 'someid'
#
# We monkey-patch some RJS-matching constants for assert_select_rjs to work
@@ -28,8 +19,6 @@ module SelectorAssertions
RJS_PATTERN_HTML = "\"((\\\\\"|[^\"])*)\""
# RJS_ANY_ID = "\"([^\"])*\""
# better match with single or double quoted ids
-# RJS_ANY_ID = "[\"']{1}([^\"])*[\"']{1}"
-# actually, the {1}'s aren't necessary!
RJS_ANY_ID = "[\"']([^\"])*[\"']"
RJS_STATEMENTS = {
Please sign in to comment.
Something went wrong with that request. Please try again.