Class: TestMedwinCompanyPlugin::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_plugin/medwin.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) http_path

Returns the value of attribute http_path



58
59
60
# File 'test/test_plugin/medwin.rb', line 58

def http_path
  @http_path
end

Instance Method Details

- (Object) company_html(comp)



59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'test/test_plugin/medwin.rb', line 59

def company_html(comp)
  target = File.expand_path('../../test/data/html/medwin', File.dirname(__FILE__))
  case comp.name
  when 'normal'
    table = 'medwin.html'
  when 'none'
    table = 'medwin_no_rslts.html'
  when 'multiple'
    table = 'medwin_2_many_rslts.html'
  end
  html = File.read([target, table].join("/"))

end