Sha256: 37363329e7c591048ed6930b29c81333519150f54d3ebe74a947e27b8d53a2b4

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Processor::Wrapper, '#call' do
  subject { object.call(response) }

  let(:object)   { described_class.new(s_env, Spec::Presenter) }
  let(:s_env)    { double }
  let(:response) { Response::Success.new(request, output) }
  let(:request)  { Request.new(env, input) }
  let(:env)      { double }
  let(:input)    { double }
  let(:output)   { double }

  let(:wrapped) { Response::Success.new(request, data) }
  let(:data)    { Spec::Presenter.new(output) }

  it { should eql(wrapped) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
substation-0.0.10.beta2 spec/unit/substation/processor/wrapper/call_spec.rb