Sha256: 416d36e5bb927629f760266ec8b36ff368bb09a8dbce383ce7dd75e75fe9f5f7

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Chain::Outgoing, '#result' do

  subject { object.result(response) }

  let(:object) {
    Class.new {
      include Substation::Chain::Outgoing
    }.new
  }

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

  it { should be(response) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

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