mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FIX: Use exact patht to ensure we always redirect with the right format.
This commit is contained in:
@ -94,15 +94,8 @@ describe ActiveRecord::ConnectionHandling do
|
||||
expect(postgresql_fallback_handler.master_down?).to eq(nil)
|
||||
expect(ActiveRecord::Base.connection_pool.connections.count).to eq(0)
|
||||
|
||||
ActiveRecord::Base.clear_all_connections!
|
||||
connection = ActiveRecord::Base.connection
|
||||
|
||||
begin
|
||||
expect(connection)
|
||||
.to be_an_instance_of(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
|
||||
ensure
|
||||
connection.close
|
||||
end
|
||||
expect(ActiveRecord::Base.connection)
|
||||
.to be_an_instance_of(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user