Sha256: 66bc9ab7b4a3e5680228754e1a27d07782eef6a7114467d7d336731a4ba285a3

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 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)      { mock }
  let(:input)    { mock }

  it { should eql(request) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

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