aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-08-16 20:21:51 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:04:08 +0200
commit9a536bc1958ae900b4c7c1f7c6f6e1bcd8622b18 (patch)
tree0df8fef24c5c4a456d5898bf24ca7b78fbec2722 /actionview
parentce4396b3663c2d2c108307e8c67dc35e8170ec6e (diff)
downloadrails-9a536bc1958ae900b4c7c1f7c6f6e1bcd8622b18.tar.gz
rails-9a536bc1958ae900b4c7c1f7c6f6e1bcd8622b18.tar.bz2
rails-9a536bc1958ae900b4c7c1f7c6f6e1bcd8622b18.zip
Removed unnecessary lines from HTMLSelector initialize.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/testing/assertions/selector.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionview/lib/action_view/testing/assertions/selector.rb b/actionview/lib/action_view/testing/assertions/selector.rb
index 60517c143b..3d65746701 100644
--- a/actionview/lib/action_view/testing/assertions/selector.rb
+++ b/actionview/lib/action_view/testing/assertions/selector.rb
@@ -310,10 +310,8 @@ module ActionView
alias :source :css_selector
def initialize(selected, page, args)
- # Start with optional element followed by mandatory selector.
+ # Start with possible optional element followed by mandatory selector.
@root = determine_root_from(args.first, page, selected)
-
- # First or second argument is the selector
@css_selector = extract_selector(args)
@equality_tests = equality_tests_from(args.shift)