Class: ODDB::TestDocument

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_model/text.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



476
477
478
# File 'test/test_model/text.rb', line 476

def setup
  @document = ODDB::Text::Document.new
end

- (Object) test_update_values



479
480
481
482
483
484
485
486
487
# File 'test/test_model/text.rb', line 479

def test_update_values
  @document.update_values({:de  => 'foobar'})
  assert_equal('foobar', @document.de)
  assert_equal('foobar', @document.fr)
  @document.update_values({:de  => 'barbaz', :fr => 'ron'})
  assert_equal('barbaz', @document.de)
  assert_equal('ron', @document.fr)
  assert_equal('barbaz', @document.en)
end