Sha256: 9899d0881020f8d64b65415e0a64f17e019f93d3c3d4cc2519aea692d2bed057
Contents?: true
Size: 700 Bytes
Versions: 13
Compression:
Stored size: 700 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') Configliere.use :config_block describe "Configliere::ConfigBlock" 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_block, :define, :encrypted @config.should_receive(:resolve_types!).ordered @config.should_receive(:resolve_finally_blocks!).ordered @config.resolve! end end end
Version data entries
13 entries across 13 versions & 1 rubygems