Sha256: f7261e4e6fb3690d2dcefcff70ea99ad3e0d9a75fae7dbd3783459e560f6611d

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

# coding: utf-8

require 'minitest/autorun'
require 'confuse'

# Test {Confuse::Namespace}
class TestNamespace < MiniTest::Unit::TestCase
  def setup
    @namespace = Confuse::Namespace.new
  end

  def test_add_an_item
    @namespace.add_item(:foo, :default => :foo, :description => 'Test')
    refute_nil @namespace[:foo]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
confuse-1.0.0 test/test_namespace.rb