<commit_before># frozen_string_literal: true
# encoding: utf-8

require 'spec_helper'

require 'runners/crud'

describe 'CRUD v1 spec tests' do
  define_crud_spec_tests(CRUD_TESTS) do |spec, req, test|
    let(:client) { authorized_client }
  end
end

describe 'CRUD v2 spec tests' do
  define_crud_spec_tests(CRUD2_TESTS) do |spec, req, test|
    let(:client) do
      authorized_client.use(spec.database_name || 'crud-default').tap do |client|
        client.subscribe(Mongo::Monitoring::COMMAND, event_subscriber)
      end
    end
  end
end
<commit_msg>RUBY-2583 remove v2 test calls (#2477)<commit_after># frozen_string_literal: true
# encoding: utf-8

require 'spec_helper'

require 'runners/crud'

describe 'CRUD v1 spec tests' do
  define_crud_spec_tests(CRUD_TESTS) do |spec, req, test|
    let(:client) { authorized_client }
  end
end

{'fraction_non_alphanumeric': 0.10295857988165681, 'fraction_numerical': 0.01775147928994083, 'mean_word_length': 4.677852348993288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7632135', 'n_tokens_mistral': 314, 'n_tokens_neox': 303, 'n_words': 76}