mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't drop_table
before schema cache tests
Since 5cab34449
, `drop_table` clears schema cache.
This commit is contained in:
parent
5cab344494
commit
75eb3d0cec
1 changed files with 2 additions and 1 deletions
|
@ -218,8 +218,9 @@ module ApplicationTests
|
|||
rails %w(generate model post title:string)
|
||||
rails %w(db:migrate db:schema:cache:dump)
|
||||
require "#{app_path}/config/environment"
|
||||
ActiveRecord::Base.connection.drop_table("posts") # force drop posts table for test.
|
||||
assert ActiveRecord::Base.connection.schema_cache.data_sources("posts")
|
||||
ensure
|
||||
ActiveRecord::Base.connection.drop_table("posts", if_exists: true) # force drop posts table for test.
|
||||
end
|
||||
|
||||
test "expire schema cache dump" do
|
||||
|
|
Loading…
Reference in a new issue