Class: ODDB::OdbaExporter::TestLine

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
ext/export/test/test_oddbdat.rb

Overview

Tests for *Line classes

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



31
32
33
# File 'ext/export/test/test_oddbdat.rb', line 31

def setup
  @line = Line.new
end

- (Object) test_content



34
35
36
37
38
# File 'ext/export/test/test_oddbdat.rb', line 34

def test_content
  assert_equal([], @line.content(nil))
  structure = {1=>"1", 2=>"2", 3=>"3"}
  assert_equal(["1", "2", "3"], @line.content(structure))
end

- (Boolean) test_empty?

Returns:

  • (Boolean)


39
40
41
# File 'ext/export/test/test_oddbdat.rb', line 39

def test_empty?
  assert_equal(true, @line.empty?)
end

- (Object) test_structure



42
43
44
# File 'ext/export/test/test_oddbdat.rb', line 42

def test_structure
  assert_equal(nil, @line.structure)
end

- (Object) test_to_s



45
46
47
# File 'ext/export/test/test_oddbdat.rb', line 45

def test_to_s
  assert_equal('', @line.to_s)
end