add spec for ActiveRecord connection detection