Sha256: 6eb1f92ce9736a9633c24405a80bc45e9f2e37be8e8cf98569f607550a0790ee
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Chain::DSL::Builder, '#dsl' do subject { dsl.new(env, processors, &block) } let(:env) { Spec::FAKE_ENV } let(:dsl) { builder.dsl } let(:builder) { described_class.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) } it "should create a subclass of Chain::DSL" do subject.class.should be < Chain::DSL end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.10.beta2 | spec/unit/substation/chain/dsl/builder/dsl_spec.rb |