diff options
author | Justin George <justin.george@gmail.com> | 2013-02-06 15:55:58 -0800 |
---|---|---|
committer | Justin George <justin.george@gmail.com> | 2013-02-06 16:01:25 -0800 |
commit | e2fdfa9c07e1ec643dc4658a1a12075d9cc26c79 (patch) | |
tree | 7168784b52e27c46680e137516ebc790c564b868 /activerecord/test/cases/adapters | |
parent | c0990f040f13d408786abf4a2d4ce97e7917f86c (diff) | |
download | rails-e2fdfa9c07e1ec643dc4658a1a12075d9cc26c79.tar.gz rails-e2fdfa9c07e1ec643dc4658a1a12075d9cc26c79.tar.bz2 rails-e2fdfa9c07e1ec643dc4658a1a12075d9cc26c79.zip |
improve tests to check for existence of extensions method, and skip testing dumped extensions if they are unsupported by the database
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/hstore_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/hstore_test.rb b/activerecord/test/cases/adapters/postgresql/hstore_test.rb index 2b660457c4..6640f9b497 100644 --- a/activerecord/test/cases/adapters/postgresql/hstore_test.rb +++ b/activerecord/test/cases/adapters/postgresql/hstore_test.rb @@ -36,6 +36,7 @@ class PostgresqlHstoreTest < ActiveRecord::TestCase end def test_hstore_included_in_extensions + assert @connection.respond_to?(:extensions), "connection should have a list of extensions" assert @connection.extensions.include?('hstore'), "extension list should include hstore" end |