From 6f61cf6e78ad0a6400ca226b137b546410bbace4 Mon Sep 17 00:00:00 2001 From: Timm Date: Wed, 24 Jul 2013 18:17:26 +0200 Subject: Changed test methods to use new substitution syntax more in line with css selectors. --- actionpack/test/controller/assert_select_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index 5e16f6d0c2..fe13970f1a 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -178,11 +178,11 @@ class AssertSelectTest < ActionController::TestCase def test_substitution_values render_html %Q{
foo
foo
} - assert_select "div#?", /\d+/ do |elements| + assert_select "div:match('id', ?)", /\d+/ do |elements| assert_equal 2, elements.size end assert_select "div" do - assert_select "div#?", /\d+/ do |elements| + assert_select ":match('id', ?)", /\d+/ do |elements| assert_equal 2, elements.size assert_select "#1" assert_select "#2" @@ -249,7 +249,7 @@ class AssertSelectTest < ActionController::TestCase def test_nested_css_select render_html %Q{
foo
foo
} - assert_select "div#?", /\d+/ do |elements| + assert_select "div:match('id', ?)", /\d+/ do |elements| assert_equal 1, css_select(elements[0], "div").size assert_equal 1, css_select(elements[1], "div").size end -- cgit v1.2.3