Sha256: 8318d7ea92c393ad0de11c32b495d133096c2ba1eb8601061aad00e4eef1e160
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
require 'spec_helper' describe Substation::Environment, '.build' do subject { described_class.build(&block) } let(:block) { lambda { |_| register(:test, Substation) } } let(:expected) { described_class.new(registry) } let(:registry) { described_class::DSL.registry(&block) } it { 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/class_methods/build_spec.rb |
substation-0.0.8 | spec/unit/substation/environment/class_methods/build_spec.rb |