aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions/selector.rb
diff options
context:
space:
mode:
authorVishal Lal <vish61@gmail.com>2014-03-22 22:50:55 +0000
committerVishal Lal <vish61@gmail.com>2014-03-22 22:58:37 +0000
commit0ebae1dbc59c34f6b5ae87bf96b8848051a0254c (patch)
tree0b31e059da70d8dcbb9243fd89b8f634e6a330ed /actionpack/lib/action_dispatch/testing/assertions/selector.rb
parent9d44b3f886847eee9c70097165863f8e37d3d1d8 (diff)
downloadrails-0ebae1dbc59c34f6b5ae87bf96b8848051a0254c.tar.gz
rails-0ebae1dbc59c34f6b5ae87bf96b8848051a0254c.tar.bz2
rails-0ebae1dbc59c34f6b5ae87bf96b8848051a0254c.zip
Swapped parameters of assert_equal in assert_select
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions/selector.rb')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/selector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb
index 3253a3d424..8a128427bf 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb
@@ -291,7 +291,7 @@ module ActionDispatch
# so is this custom message really needed?
message = message || %(Expected #{count_description(min, max, count)} matching "#{selector.to_s}", found #{matches.size}.)
if count
- assert_equal matches.size, count, message
+ assert_equal count, matches.size, message
else
assert_operator matches.size, :>=, min, message if min
assert_operator matches.size, :<=, max, message if max