Class: ODDB::OdbaExporter::TestCodesTable

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



806
807
808
809
810
# File 'ext/export/test/test_oddbdat.rb', line 806

def setup
  flexstub(AtcLine).should_receive(:new).and_return('atcline')
  flexstub(GalenicFormLine).should_receive(:new).and_return('galenicformline')
  @codestable = CodesTable.new
end

- (Object) test_atclines



811
812
813
# File 'ext/export/test/test_oddbdat.rb', line 811

def test_atclines
  assert_equal(['atcline'], @codestable.atclines('atcclass'))
end

- (Object) test_gallines



814
815
816
# File 'ext/export/test/test_oddbdat.rb', line 814

def test_gallines
  assert_equal(['galenicformline'], @codestable.gallines('galform'))
end

- (Object) test_lines



817
818
819
820
# File 'ext/export/test/test_oddbdat.rb', line 817

def test_lines
  assert_equal(['atcline'], @codestable.lines(AtcClass))
  assert_equal(['galenicformline'], @codestable.lines(GalenicForm))
end