Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit fd3f048f6dda74193644e2bbb23044e64df84449 1 parent e302759
@NZKoz NZKoz authored
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.