Sha256: 633220675e7232c9cc7c0a7ee3a748c441a2163f7a71674c0ca3195d0bc85f56

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Dispatcher::Action, '#call' do

  subject { object.call(request) }

  let(:object)   { described_class.new(klass, observer) }
  let(:klass)    { double }
  let(:observer) { double }
  let(:request)  { Request.new(env, input) }
  let(:env)      { double }
  let(:input)    { double }
  let(:response) { double }

  before do
    klass.should_receive(:call).with(request).and_return(response)
    observer.should_receive(:call).with(response)
  end

  it { should eql(response) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
substation-0.0.10.beta2 spec/unit/substation/dispatcher/action/call_spec.rb