Sha256: bb73e533bfc7f5c009d557fbff35e40216cf23ad94ae0076c02a5fec4ac6d783

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

require 'spec_helper'

RSpec.describe Frontkick::Command do
  describe '.exec' do
    describe 'timeout option' do
      subject { described_class.exec('sleep 2 && ls /hoge', timeout: 1) }
      it { expect { subject }.to raise_error Frontkick::Timeout }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
frontkick-0.5.6 spec/frontkick/command_spec.rb