Sha256: 6434f7b770bffdeb3fff7b527f43947364011c47560671e7b79f1b8b169a29c7
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Chain::DSL, '.processors' do let(:env) { Spec::FAKE_ENV } let(:chain) { Chain::EMPTY } context "and a block is given" do subject { described_class.processors(env, chain, &block) } let(:block) { lambda { |_| use(Spec::FAKE_PROCESSOR) } } let(:processor) { Spec::FAKE_PROCESSOR } it { should include(processor) } end context "and no block is given" do subject { described_class.processors(env, chain) } it { should be_empty } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.10.beta2 | spec/unit/substation/chain/dsl/class_methods/processors_spec.rb |