Skip to content

Commit d7c0042

Browse files
committed
start on 4.2 support
1 parent c548aa4 commit d7c0042

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/prototype-rails/selector_assertions.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'active_support/core_ext/module/aliasing'
2-
require 'action_view/vendor/html-scanner'
32
require 'action_dispatch/testing/assertions'
43
require 'action_dispatch/testing/assertions/selector'
54

@@ -8,7 +7,8 @@
87
# Under MIT and/or CC By license.
98
#++
109

11-
ActionDispatch::Assertions::SelectorAssertions.module_eval do
10+
module PrototypeRails
11+
module SelectorAssertions
1212
# Selects content from the RJS response.
1313
#
1414
# === Narrowing down
@@ -193,7 +193,6 @@ def response_from_page_with_rjs
193193
response_from_page_without_rjs
194194
end
195195
end
196-
alias_method_chain :response_from_page, :rjs
197196

198197
# Unescapes a RJS string.
199198
def unescape_rjs(rjs_string)
@@ -208,3 +207,4 @@ def unescape_rjs(rjs_string)
208207
unescaped
209208
end
210209
end
210+
end

0 commit comments

Comments
 (0)