Permalink
Browse files

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...
1 parent e302759 commit fd3f048f6dda74193644e2bbb23044e64df84449 @NZKoz NZKoz committed Nov 29, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_controller/assertions/selector_assertions.rb
@@ -439,6 +439,7 @@ def assert_select_rjs(*args, &block)
end
if matches
+ assert_block("") { true } # to count the assertion
if block_given? && !([:remove, :show, :hide, :toggle].include? rjs_type)
begin
in_scope, @selected = @selected, matches
@@ -603,4 +604,4 @@ def unescape_rjs(rjs_string)
end
end
end
-end
+end

0 comments on commit fd3f048

Please sign in to comment.