Skip to content
This repository
Browse code

Make sure assert_select_rjs gets counted, Closes #10278 [tarmo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit fd3f048f6dda74193644e2bbb23044e64df84449 1 parent e302759
Michael Koziarski authored November 29, 2007
3  actionpack/lib/action_controller/assertions/selector_assertions.rb
@@ -439,6 +439,7 @@ def assert_select_rjs(*args, &block)
439 439
         end
440 440
 
441 441
         if matches
  442
+          assert_block("") { true } # to count the assertion
442 443
           if block_given? && !([:remove, :show, :hide, :toggle].include? rjs_type)
443 444
             begin
444 445
               in_scope, @selected = @selected, matches
@@ -603,4 +604,4 @@ def unescape_rjs(rjs_string)
603 604
         end
604 605
     end
605 606
   end
606  
-end
  607
+end

0 notes on commit fd3f048

Please sign in to comment.
Something went wrong with that request. Please try again.