Sha256: fa00828702c7941a3f097f8040ff9ceea083a69eaac0a271eb4ad9b1b116e1e2
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
# encoding: utf-8 require 'spec_helper' # Test wether env is correctly passed down describe Chain::DSL, '#initialize' do subject { dsl.new(env, processors, &block) } let(:env) { Spec::FAKE_ENV } let(:dsl) { builder.dsl } let(:builder) { described_class::Builder.new(registry) } let(:registry) { { :test => Spec::Processor } } let(:processors) { [] } let(:block) { lambda { |_| test(Spec::FAKE_HANDLER) } } let(:processor) { Spec::FAKE_PROCESSOR } its(:processors) { should include(processor) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.10.beta2 | spec/unit/substation/chain/dsl/initialize_spec.rb |