diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-19 10:46:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-19 10:46:10 -0700 |
commit | a4458f5d21da65c4291aa339ac91c332867752f7 (patch) | |
tree | 403122d57272f906e2dbc3cbba02bcfb18883b27 /activerecord/test | |
parent | a70248c3d8eaf70422c1bcf1b571e937de95baee (diff) | |
download | rails-a4458f5d21da65c4291aa339ac91c332867752f7.tar.gz rails-a4458f5d21da65c4291aa339ac91c332867752f7.tar.bz2 rails-a4458f5d21da65c4291aa339ac91c332867752f7.zip |
removing useless ternary
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/pooled_connections_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/pooled_connections_test.rb b/activerecord/test/cases/pooled_connections_test.rb index e61960059e..de5fa140ba 100644 --- a/activerecord/test/cases/pooled_connections_test.rb +++ b/activerecord/test/cases/pooled_connections_test.rb @@ -89,7 +89,7 @@ class PooledConnectionsTest < ActiveRecord::TestCase def test_undefined_connection_returns_false old_handler = ActiveRecord::Base.connection_handler ActiveRecord::Base.connection_handler = ActiveRecord::ConnectionAdapters::ConnectionHandler.new - assert_equal false, ActiveRecord::Base.connected? + assert ! ActiveRecord::Base.connected? ensure ActiveRecord::Base.connection_handler = old_handler end |