diff options
author | Timm <kaspth@gmail.com> | 2013-08-01 19:36:39 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:03:59 +0200 |
commit | ea5f3ba0e24f8f554ff256f1f58e437cc3934bdd (patch) | |
tree | eb8c8785b135aac954aeac2b7c45638e3f40360b /actionpack/lib/action_dispatch/testing/assertions | |
parent | f2c9734be0e007a2f149b53c291d098d283ac376 (diff) | |
download | rails-ea5f3ba0e24f8f554ff256f1f58e437cc3934bdd.tar.gz rails-ea5f3ba0e24f8f554ff256f1f58e437cc3934bdd.tar.bz2 rails-ea5f3ba0e24f8f554ff256f1f58e437cc3934bdd.zip |
Moved around alias line.
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 |