aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/selector.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb
index 529db22fff..8d2a30ca8d 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb
@@ -309,6 +309,8 @@ module ActionDispatch
class HTMLSelector #:nodoc:
attr_accessor :root, :css_selector, :comparisons, :message
+ alias :source :css_selector
+
def initialize(selected, page, args)
@selected, @page = selected, page
@@ -330,8 +332,6 @@ module ActionDispatch
end
end
- alias :source :css_selector
-
def select
filter root.css(css_selector, context)
end