Class: ODDB::View::TestDescriptionList

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_view/descriptionlist.rb

Defined Under Namespace

Classes: StubDescriptionList, StubLookandfeel, StubModel

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



33
34
35
36
37
# File 'test/test_view/descriptionlist.rb', line 33

def setup
  @model = StubModel.new
  lnf = StubLookandfeel.new
  @list = StubDescriptionList.new([@model], lnf)
end

- (Object) test_sort_model



38
39
40
41
# File 'test/test_view/descriptionlist.rb', line 38

def test_sort_model
  @list.sort_model
  assert_equal(['de'], @model.args)
end