<commit_before>require 'rails_helper'

module Command
  describe Kill do

    describe '#execute' do
      subject { Kill.new('test', '1').execute }

      before { Process.detach(pid) }

      let!(:signal) { create(:process_signal, pid: pid, hostname: 'test') }
      let(:pid) { Process.spawn('sleep 10') }

      it 'terminates spawned process' do
        is_expected.to eq signal
        expect { Process.kill(0, pid) }.to raise_error
      end
    end
  end
end<commit_msg>Fix the `raise_error` matcher without providing a specific error<commit_after>require 'rails_helper'

module Command
  describe Kill do

    describe '#execute' do
      subject { Kill.new('test', '1').execute }

      before { Process.detach(pid) }

      let!(:signal) { create(:process_signal, pid: pid, hostname: 'test') }
      let(:pid) { Process.spawn('sleep 10') }

      it 'terminates spawned process' do
        is_expected.to eq signal
        expect { Process.kill(0, pid) }.to raise_error(Errno::ESRCH)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.007820136852394917, 'mean_word_length': 2.9536679536679538, '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': '7428930', 'n_tokens_mistral': 330, 'n_tokens_neox': 314, 'n_words': 89}