Sha256: 9c8210af191778fb891acc4ed2488391ed45db96120171576079a06c25d17265
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
require 'spec_helper' describe Substation::Environment::DSL, '#register' do subject { object.register(name, processor) } let(:object) { described_class.new } let(:name) { :test } let(:processor) { Spec::Processor } let(:expected) { { :test => Spec::Processor } } let(:block) { lambda { |_| register :test, Spec::Processor } } its(:registry) { should eql(expected) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.10.beta2 | spec/unit/substation/environment/dsl/register_spec.rb |
substation-0.0.8 | spec/unit/substation/environment/dsl/register_spec.rb |