Sha256: bf6702b1ab70ba8064f4b86c7a16d7b4d59f4ae1026c2acb7d2367470d45c69f

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Chain::Outgoing, '#call' do

  subject { object.call(request) }

  let(:object) {
    Class.new {
      include Substation::Chain::Outgoing
      def call(request)
        response = request.success(request.input)
        respond_with(response, :altered)
      end
    }.new
  }

  let(:response) { Response::Success.new(request, :altered) }
  let(:request)  { Request.new(env, input) }
  let(:env)      { mock }
  let(:input)    { mock }

  it { should eql(response) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
substation-0.0.8 spec/unit/substation/chain/outgoing/call_spec.rb