Sha256: 6f23b7c47e6537b36001e5932067b1f0591ffd735ee69e42268721595740c5d5

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Chain::Incoming, '#result' do

  subject { object.result(response) }

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

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

  it { should eql(request) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
substation-0.0.10.beta2 spec/unit/substation/chain/incoming/result_spec.rb