Class: TestDescriptions

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_util/language.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



114
115
116
117
# File 'test/test_util/language.rb', line 114

def setup
  @desc = ODDB::SimpleLanguage::Descriptions.new
  @desc['foo'] = 'bar'
end

- (Object) test_to_hash



118
119
120
# File 'test/test_util/language.rb', line 118

def test_to_hash
  assert_equal({'foo'=>'bar'}, @desc.to_hash)
end