mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
expected value should come first in assert_equal
[#4630 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
d00afeaeed
commit
0ef13afef5
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
end unless %w(FrontBase).include? ActiveRecord::Base.connection.adapter_name
|
||||
|
|
Loading…
Reference in a new issue