Sha256: edef60ff14568f3336803511a724ca62b0bbee5f5bbc35859d317424f5f5c728

Contents?: true

Size: 430 Bytes

Versions: 10

Compression:

Stored size: 430 Bytes

Contents

require 'minitest/autorun'
require 'confuse'

class TestNamespace < MiniTest::Unit::TestCase
  def setup
    @namespace = Confuse::Namespace.new do
      define :foo do
        default 1
      end
    end
  end

  def test_merge!
    namespace = Confuse::Namespace.new do
      define :bar do
        default 1
      end
    end

    @namespace.merge!(namespace)

    assert @namespace[:foo]
    assert @namespace[:bar]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
confuse-0.1.8 test/test_namespace.rb
confuse-0.1.7 test/test_namespace.rb
confuse-0.1.6 test/test_namespace.rb
confuse-0.1.5 test/test_namespace.rb
confuse-0.1.4 test/test_namespace.rb
confuse-0.1.3 test/test_namespace.rb
confuse-0.1.2 test/test_namespace.rb
confuse-0.1.1 test/test_namespace.rb
confuse-0.1.0 test/test_namespace.rb
confuse-0.0.1 test/test_namespace.rb