diff options
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/selector.rb | 4 |
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 |