Sha256: ce54ff832b78c9a2efaadfe9a71251ef4d972cfe12e364b018f89d56269769c4

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'

describe LabTestOrder do

  before(:each) do
    @requisition_id = 170420
    user = SampleUser
    @lab_order = LabTestOrder.new(@requisition_id, user)
  end

  it "#pdf_requisition" do
    stub_order_requisition(@requisition_id, medivo_fixture_path("lc_order_with_requisition.xml"))
    @lab_order.pdf_requisition.read.size.should > 30000
    @lab_order.pdf_requisition.close
  end

  it "#pdf_result" do
    stub_order_result(@requisition_id, medivo_fixture_path("lc_order_with_normal_results.xml"))
    @lab_order.pdf_result.read.size.should > 30000
    @lab_order.pdf_result.close
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
medivo-0.1.20 spec/models/lab_test_order_spec.rb
medivo-0.1.19 spec/models/lab_test_order_spec.rb
medivo-0.1.18 spec/models/lab_test_order_spec.rb