Sha256: 75330ee75b9724412866e01feb3818bd693e0aa7d1af3495f606ce63a7b497a5
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Chain::DSL::Config, '.build' do subject { described_class.build(registry) } let(:registry) { double('registry') } let(:dsl_module) { double('dsl_module') } let(:config) { double('config') } before do expect(Chain::DSL::ModuleBuilder).to receive(:call).with(registry).and_return(dsl_module) expect(described_class).to receive(:new).with(registry, dsl_module).and_return(config) end it { should eql(config) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.11 | spec/unit/substation/chain/dsl/config_spec.rb |
substation-0.0.10 | spec/unit/substation/chain/dsl/config_spec.rb |