Sha256: aae1a23cbde4aadae9e1a315dc89f721ec47af33e2a61ca1b5f3284882498712

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require_relative '../_lib'

class Critic::Unit::KernelTest < Critic::Unit::Test
  before do
    @kernel = Configatron::RootStore.new
  end

  describe 'delegation' do
    it 'passes on to Configatron::Store' do
      @kernel.a.b.c.d = 'D'
      assert_equal('D', @kernel.a.b.c.d)
    end
  end

  describe 'global configatron' do
    it 'returns an instance of Configatron::RootStore' do
      assert_equal(true, configatron.kind_of?(Configatron::RootStore))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
configatron-4.0.0 test/unit/configatron/root_store.rb