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

Version Path
configliere-0.2.3 spec/configliere/config_block_spec.rb
configliere-0.2.2 spec/configliere/config_block_spec.rb
configliere-0.2.1 spec/configliere/config_block_spec.rb
configliere-0.1.1 spec/configliere/config_block_spec.rb
configliere-0.1.0 spec/configliere/config_block_spec.rb
configliere-0.0.9 spec/configliere/config_block_spec.rb
configliere-0.0.8 spec/configliere/config_block_spec.rb
configliere-0.0.7 spec/configliere/config_block_spec.rb
configliere-0.0.6 spec/configliere/config_block_spec.rb
configliere-0.0.5 spec/configliere/config_block_spec.rb
configliere-0.0.4 spec/configliere/config_block_spec.rb
configliere-0.0.3 spec/configliere/config_block_spec.rb
configliere-0.0.2 spec/configliere/config_block_spec.rb