Sha256: b394552f72349c282eb5d591f45d4e545afd9c066d12e2c05c4602bfda70fdb5
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') Configliere.use :config_blocks describe "Configliere::ConfigBlocks" do before do @config = Configliere::Param.new :normal_param => 'normal' end describe 'resolving' do it 'runs blocks' do @block_watcher = 'watcher' @block_watcher.should_receive(:fnord).with(@config) @config.finally{|arg| @block_watcher.fnord(arg) } @config.resolve! end it 'resolves blocks last' do Configliere.use :config_blocks, :define, :encrypted @config.should_receive(:resolve_types!).ordered @config.should_receive(:resolve_finally_blocks!).ordered @config.resolve! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
configliere-0.0.1 | spec/configliere/config_blocks_spec.rb |