Sha256: c6fc35a878cfb2d76b1013d95c304f9383dfefc60f9bf0d2b01e2801d424ecf7
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Processor::Evaluator, '#call' do subject { object.call(request) } let(:object) { described_class.new(Spec::Handler::Evaluator.new) } let(:request) { Request.new(env, input) } let(:env) { mock } context "when evaluation is successful" do let(:input) { :success } let(:response) { Response::Success.new(request, input) } it { should eql(response) } end context "when evaluation is not successful" do let(:input) { :invalid } let(:response) { Response::Failure.new(request, :failure) } it { should eql(response) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.8 | spec/unit/substation/processor/evaluator/call_spec.rb |