Sha256: 31ba23e571bc420e1868814d6b6b24f7b6dc11010e69d7d5bf2e93ec5de76f68

Contents?: true

Size: 580 Bytes

Versions: 4

Compression:

Stored size: 580 Bytes

Contents

require 'spec_helper'

describe Kcl::Executor do
  describe '#initialize' do
    context 'When no block provided' do
      it { expect { Kcl::Executor.new }.to raise_error LocalJumpError  }
    end
  end

  describe '.run' do
    context 'Without initialize with #new' do
      it { expect { Kcl::Executor.run }.to raise_error 'Executor not configured' }
    end

    context 'With executor initialized' do
      before {
        expect_any_instance_of(Kcl::Executor).to receive(:run)

        Kcl::Executor.new {}
      }

      it { expect Kcl::Executor.run }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
amazon-kinesis-client-ruby-1.0.1 spec/executor_spec.rb
amazon-kinesis-client-ruby-1.0.0 spec/executor_spec.rb
amazon-kinesis-client-ruby-0.0.3 spec/executor_spec.rb
amazon-kinesis-client-ruby-0.0.1 spec/executor_spec.rb