Class: ODDB::State::Companies::TestCompanyListState::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/companies/companylist.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) user

Returns the value of attribute user



24
25
26
# File 'test/test_state/companies/companylist.rb', line 24

def user
  @user
end

- (Object) user_input(*keys)

Returns the value of attribute user_input



24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'test/test_state/companies/companylist.rb', line 24

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



25
26
27
# File 'test/test_state/companies/companylist.rb', line 25

def app
  @app ||= StubApp.new
end