diff options
author | Timm <kaspth@gmail.com> | 2013-07-30 20:14:33 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:03:58 +0200 |
commit | 4f19614e55bfbb756f0782225a0d186a58331271 (patch) | |
tree | d18701711b41b884a72fbe2515b8af8a3bcadb47 /actionpack | |
parent | 3c6ce7403423fc7362ba11c921ab2b5d136aff68 (diff) | |
download | rails-4f19614e55bfbb756f0782225a0d186a58331271.tar.gz rails-4f19614e55bfbb756f0782225a0d186a58331271.tar.bz2 rails-4f19614e55bfbb756f0782225a0d186a58331271.zip |
Fixed: test_nested_assert_select selects from elements instead of elements[0] and elements[1].
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/assert_select_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index 57e5d0c30e..054cbba40b 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -194,8 +194,8 @@ class AssertSelectTest < ActionController::TestCase render_html %Q{<div id="1">foo</div><div id="2">foo</div>} assert_select "div" do |elements| assert_equal 2, elements.size - assert_select elements[0], "#1" - assert_select elements[1], "#2" + assert_select elements, "#1" + assert_select elements, "#2" end assert_select "div" do assert_select "div" do |elements| |