From ac7c686047ff41d1f15a869372c64e259df6e06e Mon Sep 17 00:00:00 2001 From: Paul Gallagher Date: Thu, 23 May 2024 23:06:31 +0800 Subject: [PATCH] Fix: rule_spec should honor DB setting (#847) --- spec/cancan/rule_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/cancan/rule_spec.rb b/spec/cancan/rule_spec.rb index 7de14c1d..3f789fd1 100644 --- a/spec/cancan/rule_spec.rb +++ b/spec/cancan/rule_spec.rb @@ -61,7 +61,7 @@ def count_queries(&block) end before do - ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') + connect_db ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table(:watermelons) do |t|