diff options
author | Timm <kaspth@gmail.com> | 2013-07-24 18:17:26 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:03:56 +0200 |
commit | 6f61cf6e78ad0a6400ca226b137b546410bbace4 (patch) | |
tree | a9e143233a40623d76d57fb7a3f0681837243122 /actionpack/test | |
parent | 1b0a4b9351c47140cd6ae6336c1eb52159766d9d (diff) | |
download | rails-6f61cf6e78ad0a6400ca226b137b546410bbace4.tar.gz rails-6f61cf6e78ad0a6400ca226b137b546410bbace4.tar.bz2 rails-6f61cf6e78ad0a6400ca226b137b546410bbace4.zip |
Changed test methods to use new substitution syntax more in line with css selectors.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/assert_select_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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{<div id="1">foo</div><div id="2">foo</div>} - 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{<div id="1">foo</div><div id="2">foo</div>} - 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 |