Sha256: e35a25620fb82c70ae2b2977afd098b0a000495bd528af6f74ce32bbe7519a56

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Processor::Fallible do
  describe '#with_failure_chain' do
    subject { object.with_failure_chain(chain) }

    include_context 'Processor#initialize'

    let(:klass) {
      Class.new {
        include Processor::Incoming
        include Processor::Fallible
      }
    }

    let(:expected)        { klass.new(processor_name, handler, expected_config) }
    let(:expected_config) { processor_config.with_failure_chain(chain) }
    let(:chain)           { double }

    it { should eql(expected) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
substation-0.0.11 spec/unit/substation/processor/fallible_spec.rb
substation-0.0.10 spec/unit/substation/processor/fallible_spec.rb