From fb52652ca369c3f4884faa1ded4146af7f1d7ca4 Mon Sep 17 00:00:00 2001 From: Paul Gallagher Date: Tue, 30 Apr 2024 09:33:55 +0000 Subject: [PATCH] Fix: rule_spec should honor DB setting --- 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 7de14c1d6..3f789fd1f 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|