diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-05-17 16:40:48 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-18 16:13:00 +0200 |
commit | 0ef13afef53bb53f709be7adab3e863ec62eae62 (patch) | |
tree | 576b23460ea57c990f0bb8fa77485390545618ab /activerecord | |
parent | d00afeaeed8d23488c319c2fbdbbe8261eebe611 (diff) | |
download | rails-0ef13afef53bb53f709be7adab3e863ec62eae62.tar.gz rails-0ef13afef53bb53f709be7adab3e863ec62eae62.tar.bz2 rails-0ef13afef53bb53f709be7adab3e863ec62eae62.zip |
expected value should come first in assert_equal
[#4630 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/pooled_connections_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/pooled_connections_test.rb b/activerecord/test/cases/pooled_connections_test.rb index 94d6663778..e61960059e 100644 --- a/activerecord/test/cases/pooled_connections_test.rb +++ b/activerecord/test/cases/pooled_connections_test.rb @@ -34,8 +34,8 @@ class PooledConnectionsTest < ActiveRecord::TestCase if RUBY_VERSION < '1.9' def test_pooled_connection_checkout checkout_connections - assert_equal @connections.length, 2 - assert_equal @timed_out, 2 + assert_equal 2, @connections.length + assert_equal 2, @timed_out end end @@ -137,4 +137,4 @@ class PooledConnectionsTest < ActiveRecord::TestCase def add_record(name) ActiveRecord::Base.connection_pool.with_connection { Project.create! :name => name } end -end unless %w(FrontBase).include? ActiveRecord::Base.connection.adapter_name
\ No newline at end of file +end unless %w(FrontBase).include? ActiveRecord::Base.connection.adapter_name |