Class: ODDB::State::Admin::TestTransparentLoginState

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_state/admin/login.rb

Defined Under Namespace

Classes: StubApp, StubGalenicGroup, StubSession, StubUser

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



56
57
58
# File 'test/test_state/admin/login.rb', line 56

def setup
  @session = StubSession.new
end

- (Object) test_transparent_login



59
60
61
62
63
64
65
66
# File 'test/test_state/admin/login.rb', line 59

def 
  model = StubGalenicGroup.new
  pointer = Persistence::Pointer.new([:resolve, 3])
  model.pointer = pointer
  state = State::Admin::TransparentLogin.new(@session, model)
  newstate = state.
  assert_instance_of(StubResolvedRootState, newstate)
end