File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
activerecord/test/cases/tasks Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ def test_raises_an_error_when_called_with_protected_environment
50
50
protected_environments = ActiveRecord ::Base . protected_environments
51
51
current_env = ActiveRecord ::Base . connection . migration_context . current_environment
52
52
53
- InternalMetadata . create_table
54
53
InternalMetadata [ :environment ] = current_env
55
54
56
55
assert_called_on_instance_of (
@@ -77,7 +76,6 @@ def test_raises_an_error_when_called_with_protected_environment_which_name_is_a_
77
76
protected_environments = ActiveRecord ::Base . protected_environments
78
77
current_env = ActiveRecord ::Base . connection . migration_context . current_environment
79
78
80
- InternalMetadata . create_table
81
79
InternalMetadata [ :environment ] = current_env
82
80
83
81
assert_called_on_instance_of (
@@ -966,8 +964,8 @@ def setup
966
964
end
967
965
968
966
def teardown
969
- SchemaMigration . drop_table
970
- InternalMetadata . drop_table
967
+ SchemaMigration . delete_all
968
+ InternalMetadata . delete_all
971
969
ActiveRecord ::Base . connection_handlers = { writing : ActiveRecord ::Base . default_connection_handler }
972
970
end
973
971
You can’t perform that action at this time.
0 commit comments