# frozen_string_literal: true require 'spec_helper' describe Mina::Runner::System do subject(:runner) { described_class.new('echo hello') } describe '#run' do before do allow(Kernel).to receive(:system) end it 'executes the script' do runner.run expect(Kernel).to have_received(:system).with('echo hello') end end end