Sha256: 58ac65bee95ab6452f65c8fb4d99fcf094b99cc4d65c45bbe6e45c34790a0bcf

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Chain::DSL::Builder, '#dsl' do
  subject { dsl.new(processors, &block) }

  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.8 spec/unit/substation/chain/dsl/builder/dsl_spec.rb