<commit_before># frozen_string_literal: true

require 'spec_helper'

module Cucumber::Deprecate
  describe CliOption do
    let(:subject) { Cucumber::Deprecate::CliOption }
    let(:error_stream) { double }

    context '.deprecate' do
      it 'outputs a warning to the provided channel' do
        allow(error_stream).to receive(:puts)
        subject.deprecate(error_stream, '--some-option', 'Please use --another-option instead', '1.2.3')

        expect(error_stream).to have_received(:puts).with(
          a_string_including(
            "WARNING: --some-option is deprecated and will be removed after version 1.2.3.\n" \
            'Please use --another-option instead.'
          )
        )
      end
    end
  end
end<commit_msg>Don't define useless subject<commit_after># frozen_string_literal: true

require 'spec_helper'

module Cucumber::Deprecate
  describe CliOption do
    let(:error_stream) { double }

    context '.deprecate' do
      it 'outputs a warning to the provided channel' do
        allow(error_stream).to receive(:puts)
        described_class.deprecate(error_stream, '--some-option', 'Please use --another-option instead', '1.2.3')

        expect(error_stream).to have_received(:puts).with(
          a_string_including(
            "WARNING: --some-option is deprecated and will be removed after version 1.2.3.\n" \
            'Please use --another-option instead.'
          )
        )
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10743801652892562, 'fraction_numerical': 0.008264462809917356, 'mean_word_length': 2.669191919191919, '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': '6415431', 'n_tokens_mistral': 445, 'n_tokens_neox': 426, 'n_words': 114}