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