Class: ODDB::TestFachinfoDocument

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



139
140
141
# File 'test/test_model/fachinfo.rb', line 139

def setup
  @doc = FachinfoDocument.new
end

- (Object) test_first_chapter



142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'test/test_model/fachinfo.rb', line 142

def test_first_chapter
  ue = flexmock 'unwanted_effects'
  @doc.unwanted_effects = ue
  assert_equal ue, @doc.first_chapter
  us = flexmock 'usage'
  @doc.usage = us
  assert_equal us, @doc.first_chapter
  gf = flexmock 'galenic_form'
  @doc.galenic_form = gf
  assert_equal gf, @doc.first_chapter
  @doc.composition = flexmock 'composition'
  assert_equal gf, @doc.first_chapter
end