aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/schema_dumper_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb
index c5092e15ea..bbe1a14d00 100644
--- a/activerecord/test/cases/schema_dumper_test.rb
+++ b/activerecord/test/cases/schema_dumper_test.rb
@@ -237,8 +237,18 @@ class SchemaDumperTest < ActiveRecord::TestCase
unless connection.extension_enabled?('hstore')
connection.enable_extension 'hstore'
end
+
output = standard_dump
+ assert_match "# These are extensions that must be enabled", output
assert_match %r{enable_extension "hstore"}, output
+
+ connection.extensions.each do |ext|
+ connection.disable_extension ext
+ end
+
+ output = standard_dump
+ assert_no_match "# These are extensions that must be enabled", output
+ assert_no_match %r{enable_extension}, output
end
def test_schema_dump_includes_xml_shorthand_definition