Class: ODDB::View::TestLogo

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

Defined Under Namespace

Classes: StubSession

Instance Method Summary (collapse)

Instance Method Details

- (Object) test_init



49
50
51
52
53
54
# File 'test/test_view/logo.rb', line 49

def test_init
  session = StubSession.new
  view = View::.new('model', session)
  result = view.lookandfeel.function_called
  assert_equal('localized', result)
end

- (Object) test_init2



55
56
57
58
59
60
61
# File 'test/test_view/logo.rb', line 55

def test_init2
  session = StubSession.new
  session.enabled = false
  view = View::.new('model', session)
  result = view.lookandfeel.function_called
  assert_equal('not localized', result)
end