Class: ODDB::State::Drugs::TestFachinfoConfirmState::StubSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubSession) initialize

A new instance of StubSession



47
48
49
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 47

def initialize
  @user_input = {}
end

Instance Attribute Details

- (Object) app

Returns the value of attribute app



46
47
48
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 46

def app
  @app
end

- (Object) user_equiv=(value) (writeonly)

Sets the attribute user_equiv

Parameters:

  • value

    the value to set the attribute user_equiv to.



45
46
47
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 45

def user_equiv=(value)
  @user_equiv = value
end

- (Object) user_input(*args)



53
54
55
56
57
58
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 53

def user_input(*args)
  args.inject({}) { |inj, key|
    inj.store(key, @user_input[key])
    inj
  }
end

Instance Method Details

- (Boolean) user_equiv?(comp)

Returns:

  • (Boolean)


50
51
52
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 50

def user_equiv?(comp)
  @user_equiv
end