Class: TestMedwinPackagePlugin::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



169
170
171
# File 'test/test_plugin/medwin.rb', line 169

def http_path
  @http_path
end

Instance Method Details

- (Object) package_html(pack)



170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'test/test_plugin/medwin.rb', line 170

def package_html(pack)
  unless(pack.barcode=='nil')
    target = File.expand_path('../../test/data/html/medwin', File.dirname(__FILE__))
    case pack.barcode
    when 'normal'
      table = 'medwin_package.html'
    when 'none'
      table = 'medwin_no_rslts.html'
    when 'multiple'
      table = 'medwin_2_many_rslts.html'
    end
      html = File.read([target, table].join("/"))
  else
    nil
  end
end