From d5610b5794b7e07a5fa49260e065296bf78a8364 Mon Sep 17 00:00:00 2001 From: Samuel Esposito Date: Fri, 21 Apr 2017 09:28:04 +0200 Subject: [PATCH] Extend activerecord base spec --- spec/database_cleaner/active_record/base_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/database_cleaner/active_record/base_spec.rb b/spec/database_cleaner/active_record/base_spec.rb index ff5be7f..370356f 100644 --- a/spec/database_cleaner/active_record/base_spec.rb +++ b/spec/database_cleaner/active_record/base_spec.rb @@ -181,6 +181,12 @@ my_db: subject.connection_class end + + it "returns the connection class" do + ::ActiveRecord::Base.stub(:establish_connection) + + subject.connection_class.should eq ::ActiveRecord::Base + end end end end