Class: ODDB::State::Drugs::TestInitState::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/drugs/init.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) user_input(*keys)

Returns the value of attribute user_input



28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'test/test_state/drugs/init.rb', line 28

def user_input(*keys)
  if(keys.size > 1)
    res = {}
    keys.each { |key|
      res.store(key, user_input(key))
    }
    res
  else
    key = keys.first
    (@user_input ||= {
      :pointer =>  StubPointer.new
    })[key]
  end
end

Instance Method Details

- (Object) app



29
30
31
# File 'test/test_state/drugs/init.rb', line 29

def app
  @app ||= StubApp.new
end

- (Object) login



32
33
34
# File 'test/test_state/drugs/init.rb', line 32

def 
  StubUser.new
end

- (Object) lookandfeel



35
36
37
# File 'test/test_state/drugs/init.rb', line 35

def lookandfeel
  StubLookandfeel.new
end