medivo 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/app/assets/javascripts/medivo/lab_appointment/handlers.coffee +25 -20
  2. data/app/models/medivo/lab.rb +3 -2
  3. data/app/models/medivo/order.rb +3 -3
  4. data/lib/medivo/version.rb +1 -1
  5. data/spec/controllers/orders_controller_spec.rb +2 -2
  6. data/spec/dummy/log/development.log +583 -0
  7. data/spec/dummy/log/test.log +232 -0
  8. data/spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9 +0 -0
  9. data/spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf +0 -0
  10. data/spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911 +0 -0
  11. data/spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f +0 -0
  12. data/spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d +0 -0
  13. data/spec/dummy/tmp/cache/assets/CD8/DA0/sprockets%2F622aa5281d15503829a5f7a0bf56fc29 +0 -0
  14. data/spec/dummy/tmp/cache/assets/CDD/820/sprockets%2Fb28231960c7ac62eff9048e702a29c70 +0 -0
  15. data/spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86 +0 -0
  16. data/spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 +0 -0
  17. data/spec/dummy/tmp/cache/assets/D07/6B0/sprockets%2F69a2df619ff14da071309dac4196400e +0 -0
  18. data/spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c +0 -0
  19. data/spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007 +0 -0
  21. data/spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037 +0 -0
  22. data/spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d +0 -0
  23. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  24. data/spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68 +0 -0
  25. data/spec/dummy/tmp/cache/assets/D41/250/sprockets%2F7b3c4426715dcd1feedc4a95e5444256 +0 -0
  26. data/spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6 +0 -0
  27. data/spec/dummy/tmp/cache/assets/D4C/7A0/sprockets%2Fbc635c7b186d1ef5178f4ed3722d868b +0 -0
  28. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  29. data/spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a +0 -0
  30. data/spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116 +0 -0
  31. data/spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6 +0 -0
  32. data/spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094 +0 -0
  33. data/spec/dummy/tmp/cache/assets/D65/6D0/sprockets%2F3ce07ca1958d7ab3e80c4b3e0d24088c +0 -0
  34. data/spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e +0 -0
  35. data/spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3 +0 -0
  36. data/spec/dummy/tmp/cache/assets/D76/720/sprockets%2F88d8aa1d2fb41ce79b8ec4150ea74748 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 +0 -0
  40. data/spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6 +0 -0
  41. data/spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4 +0 -0
  42. data/spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf +0 -0
  43. data/spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b +0 -0
  44. data/spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf +0 -0
  45. data/spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108 +0 -0
  46. data/spec/dummy/tmp/cache/assets/DFC/420/sprockets%2F502e2c683d1aaad6ac88966ffc4d2ade +0 -0
  47. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  48. data/spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4 +0 -0
  49. data/spec/dummy/tmp/pids/server.pid +1 -0
  50. data/spec/fixtures/{Southeast.jpg → images/southeast.jpg} +0 -0
  51. data/spec/fixtures/{hepc_negative_results.pdf → pdfs/hepc_negative_results.pdf} +0 -0
  52. data/spec/fixtures/{hepc_result_faq.pdf → pdfs/hepc_result_faq.pdf} +0 -0
  53. data/spec/fixtures/{uhc_requisition_cover_letter.pdf → pdfs/uhc_requisition_cover_letter.pdf} +0 -0
  54. data/spec/fixtures/{uhc_result_cover_letter.pdf → pdfs/uhc_result_cover_letter.pdf} +0 -0
  55. data/spec/fixtures/{lc_order_with_normal_results.xml → xml/lc_order_with_normal_results.xml} +0 -0
  56. data/spec/fixtures/{lc_order_with_positive_results.xml → xml/lc_order_with_positive_results.xml} +0 -0
  57. data/spec/fixtures/{lc_order_with_requisition.xml → xml/lc_order_with_requisition.xml} +0 -0
  58. data/spec/fixtures/{valid_uhc_order.xml → xml/valid_uhc_order.xml} +0 -0
  59. data/spec/lib/fdf_generator_spec.rb +1 -1
  60. data/spec/lib/pdf_generator_spec.rb +4 -4
  61. data/spec/lib/pdf_group_spec.rb +10 -10
  62. data/spec/models/lab_test_order_spec.rb +2 -2
  63. data/spec/models/orders_spec.rb +38 -4
  64. data/spec/support/helper.rb +12 -0
  65. data/spec/support/sample_data.rb +3 -3
  66. metadata +39 -37
@@ -1525,3 +1525,235 @@ Completed 200 OK in 886ms (Views: 67.1ms)
1525
1525
  Processing by OrdersController#download_result as HTML
1526
1526
  Sent data unitedhealthcare_result.pdf (1.8ms)
1527
1527
  Completed 200 OK in 684ms (Views: 1.1ms)
1528
+
1529
+
1530
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-11 11:52:27 -0500
1531
+ Processing by Medivo::LabsController#lab_data as HTML
1532
+ Parameters: {"zip_code"=>"90210"}
1533
+ Completed 200 OK in 294ms (Views: 1.9ms)
1534
+
1535
+
1536
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-11 11:52:30 -0500
1537
+ Processing by LabsController#lab_search as HTML
1538
+ Parameters: {"zip_code"=>"90210"}
1539
+ Completed 200 OK in 317ms (Views: 134.2ms)
1540
+
1541
+
1542
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-11 11:52:30 -0500
1543
+ Served asset /application.css - 200 OK (4ms)
1544
+
1545
+
1546
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-11 11:52:30 -0500
1547
+ Served asset /application.js - 200 OK (26ms)
1548
+
1549
+
1550
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-11 11:52:31 -0500
1551
+ Served asset /medivo/markerA.png - 200 OK (2ms)
1552
+
1553
+
1554
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-11 11:52:31 -0500
1555
+ Served asset /medivo/markerB.png - 200 OK (1ms)
1556
+
1557
+
1558
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-11 11:52:31 -0500
1559
+ Served asset /medivo/arrow.png - 200 OK (1ms)
1560
+
1561
+
1562
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-11 11:52:31 -0500
1563
+ Processing by Medivo::LabsController#appointment_data as HTML
1564
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1565
+ Completed 200 OK in 1ms (Views: 0.3ms)
1566
+
1567
+
1568
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-11 11:57:46 -0500
1569
+ Processing by Medivo::LabsController#lab_data as HTML
1570
+ Parameters: {"zip_code"=>"90210"}
1571
+ Completed 200 OK in 352ms (Views: 1.8ms)
1572
+
1573
+
1574
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-11 11:57:48 -0500
1575
+ Processing by LabsController#lab_search as HTML
1576
+ Parameters: {"zip_code"=>"90210"}
1577
+ Completed 200 OK in 375ms (Views: 131.3ms)
1578
+
1579
+
1580
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-11 11:57:49 -0500
1581
+ Served asset /application.css - 200 OK (3ms)
1582
+
1583
+
1584
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-11 11:57:49 -0500
1585
+ Served asset /application.js - 200 OK (18ms)
1586
+
1587
+
1588
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-11 11:57:49 -0500
1589
+ Served asset /medivo/markerA.png - 200 OK (1ms)
1590
+
1591
+
1592
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-11 11:57:49 -0500
1593
+ Served asset /medivo/markerB.png - 200 OK (2ms)
1594
+
1595
+
1596
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-11 11:57:49 -0500
1597
+ Served asset /medivo/arrow.png - 200 OK (1ms)
1598
+
1599
+
1600
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-11 11:57:49 -0500
1601
+ Processing by Medivo::LabsController#appointment_data as HTML
1602
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1603
+ Completed 200 OK in 1ms (Views: 0.4ms)
1604
+ Processing by OrdersController#download_result as HTML
1605
+ Sent data unitedhealthcare_result.pdf (78.2ms)
1606
+ Completed 200 OK in 966ms (Views: 75.7ms)
1607
+
1608
+
1609
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-11 12:48:18 -0500
1610
+ Processing by Medivo::LabsController#lab_data as HTML
1611
+ Parameters: {"zip_code"=>"90210"}
1612
+ Completed 200 OK in 292ms (Views: 2.2ms)
1613
+
1614
+
1615
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-11 12:48:23 -0500
1616
+ Processing by LabsController#lab_search as HTML
1617
+ Parameters: {"zip_code"=>"90210"}
1618
+ Completed 200 OK in 263ms (Views: 55.2ms)
1619
+
1620
+
1621
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-11 12:48:23 -0500
1622
+ Compiled application.css (1ms) (pid 56345)
1623
+ Served asset /application.css - 200 OK (12ms)
1624
+
1625
+
1626
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-11 12:48:23 -0500
1627
+ Compiled application.js (9ms) (pid 56345)
1628
+ Compiled jquery.js (1ms) (pid 56345)
1629
+ Compiled jquery_ujs.js (0ms) (pid 56345)
1630
+ Compiled medivo/lab_list/application.js (9ms) (pid 56345)
1631
+ Compiled medivo/handlebars.js (0ms) (pid 56345)
1632
+ Compiled medivo/helpers.js (293ms) (pid 56345)
1633
+ Compiled medivo/lab_list/models.js (197ms) (pid 56345)
1634
+ Compiled medivo/models.js (173ms) (pid 56345)
1635
+ Compiled medivo/lab_list/views.js (183ms) (pid 56345)
1636
+ Compiled medivo/views.js (173ms) (pid 56345)
1637
+ Compiled medivo/lab_list/handlers.js (174ms) (pid 56345)
1638
+ Compiled medivo/lab_list/sample/show_labs.js (168ms) (pid 56345)
1639
+ Compiled medivo/lab_appointment/application.js (77ms) (pid 56345)
1640
+ Compiled medivo/date.js (1ms) (pid 56345)
1641
+ Compiled medivo/lab_appointment/models.js (169ms) (pid 56345)
1642
+ Compiled medivo/lab_appointment/views.js (168ms) (pid 56345)
1643
+ Compiled medivo/lab_appointment/handlers.js (185ms) (pid 56345)
1644
+ Compiled medivo/lab_appointment/sample/show_appointments.js (175ms) (pid 56345)
1645
+ Served asset /application.js - 200 OK (2628ms)
1646
+
1647
+
1648
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-11 12:48:26 -0500
1649
+ Served asset /medivo/markerA.png - 200 OK (5ms)
1650
+
1651
+
1652
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-11 12:48:26 -0500
1653
+ Served asset /medivo/markerB.png - 200 OK (3ms)
1654
+
1655
+
1656
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-11 12:48:26 -0500
1657
+ Served asset /medivo/arrow.png - 200 OK (4ms)
1658
+
1659
+
1660
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-11 12:48:26 -0500
1661
+ Processing by Medivo::LabsController#appointment_data as HTML
1662
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1663
+ Completed 200 OK in 1ms (Views: 0.4ms)
1664
+ Processing by OrdersController#download_result as HTML
1665
+ Sent data unitedhealthcare_result.pdf (78.7ms)
1666
+ Completed 200 OK in 958ms (Views: 78.1ms)
1667
+
1668
+
1669
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-11 12:52:16 -0500
1670
+ Processing by Medivo::LabsController#lab_data as HTML
1671
+ Parameters: {"zip_code"=>"90210"}
1672
+ Completed 200 OK in 205ms (Views: 2.0ms)
1673
+
1674
+
1675
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-11 12:52:19 -0500
1676
+ Processing by LabsController#lab_search as HTML
1677
+ Parameters: {"zip_code"=>"90210"}
1678
+ Completed 200 OK in 122ms (Views: 43.0ms)
1679
+
1680
+
1681
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-11 12:52:19 -0500
1682
+ Served asset /application.css - 200 OK (3ms)
1683
+
1684
+
1685
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-11 12:52:19 -0500
1686
+ Served asset /application.js - 200 OK (24ms)
1687
+
1688
+
1689
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-11 12:52:20 -0500
1690
+ Served asset /medivo/markerA.png - 200 OK (2ms)
1691
+
1692
+
1693
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-11 12:52:20 -0500
1694
+ Served asset /medivo/markerB.png - 200 OK (1ms)
1695
+
1696
+
1697
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-11 12:52:20 -0500
1698
+ Served asset /medivo/arrow.png - 200 OK (3ms)
1699
+
1700
+
1701
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-11 12:52:20 -0500
1702
+ Processing by Medivo::LabsController#appointment_data as HTML
1703
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1704
+ Completed 200 OK in 1ms (Views: 0.3ms)
1705
+ Processing by OrdersController#download_requisition as HTML
1706
+ Rendered text template (0.0ms)
1707
+ Sent data unitedhealthcare_requisition.pdf (97.4ms)
1708
+ Completed 200 OK in 962ms (Views: 96.9ms)
1709
+ Processing by OrdersController#download_result as HTML
1710
+ Sent data unitedhealthcare_result.pdf (2.1ms)
1711
+ Completed 200 OK in 698ms (Views: 1.4ms)
1712
+ Processing by OrdersController#download_requisition as HTML
1713
+ Rendered text template (0.0ms)
1714
+ Sent data unitedhealthcare_requisition.pdf (87.3ms)
1715
+ Completed 200 OK in 956ms (Views: 86.6ms)
1716
+ Processing by OrdersController#download_result as HTML
1717
+ Sent data unitedhealthcare_result.pdf (2.5ms)
1718
+ Completed 200 OK in 697ms (Views: 1.9ms)
1719
+
1720
+
1721
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-11 12:56:00 -0500
1722
+ Processing by Medivo::LabsController#lab_data as HTML
1723
+ Parameters: {"zip_code"=>"90210"}
1724
+ Completed 200 OK in 283ms (Views: 1.8ms)
1725
+
1726
+
1727
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-11 12:56:04 -0500
1728
+ Processing by LabsController#lab_search as HTML
1729
+ Parameters: {"zip_code"=>"90210"}
1730
+ Completed 200 OK in 380ms (Views: 42.0ms)
1731
+
1732
+
1733
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-11 12:56:04 -0500
1734
+ Served asset /application.css - 200 OK (4ms)
1735
+
1736
+
1737
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-11 12:56:04 -0500
1738
+ Compiled application.js (14ms) (pid 56767)
1739
+ Compiled medivo/lab_appointment/application.js (11ms) (pid 56767)
1740
+ Compiled medivo/lab_appointment/handlers.js (198ms) (pid 56767)
1741
+ Served asset /application.js - 200 OK (715ms)
1742
+
1743
+
1744
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-11 12:56:05 -0500
1745
+ Served asset /medivo/markerA.png - 200 OK (2ms)
1746
+
1747
+
1748
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-11 12:56:05 -0500
1749
+ Served asset /medivo/markerB.png - 200 OK (1ms)
1750
+
1751
+
1752
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-11 12:56:05 -0500
1753
+ Served asset /medivo/arrow.png - 200 OK (2ms)
1754
+
1755
+
1756
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-11 12:56:05 -0500
1757
+ Processing by Medivo::LabsController#appointment_data as HTML
1758
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1759
+ Completed 200 OK in 1ms (Views: 0.4ms)
@@ -0,0 +1 @@
1
+ 56055
@@ -17,7 +17,7 @@ describe Medivo::FdfGenerator do
17
17
  end
18
18
 
19
19
  it "fill in pdf form" do
20
- pdf_path = medivo_fixture_path "hepc_negative_results.pdf"
20
+ pdf_path = medivo_pdf_fixture_path "hepc_negative_results.pdf"
21
21
  pdf_output = `pdftk #{pdf_path} fill_form #{@fdf.path} output - flatten`
22
22
  text = pdf_stream_to_text(pdf_output)
23
23
  @fields.each do |key,value|
@@ -25,7 +25,7 @@ Southeast Region
25
25
 
26
26
  it "simple cover letter" do
27
27
  name = "Duderoni"
28
- path = medivo_fixture_path "hepc_negative_results.pdf"
28
+ path = medivo_pdf_fixture_path "hepc_negative_results.pdf"
29
29
  pdf_file = Medivo::PdfGenerator.variable_fields(path, {:patient_name=>name})
30
30
  text = pdf_to_text(pdf_file)
31
31
  text.should match name
@@ -33,7 +33,7 @@ Southeast Region
33
33
  end
34
34
 
35
35
  it "for uhc requisition cover letter" do
36
- path = medivo_fixture_path "uhc_requisition_cover_letter.pdf"
36
+ path = medivo_pdf_fixture_path "uhc_requisition_cover_letter.pdf"
37
37
  pdf_file = Medivo::PdfGenerator.variable_fields(path, uhc_cover_letter_fields)
38
38
 
39
39
  text = pdf_to_text(pdf_file)
@@ -46,8 +46,8 @@ Southeast Region
46
46
  end
47
47
 
48
48
  it "#variable_fields_with_images accepts image param and stamps image onto pdf" do
49
- path = medivo_fixture_path "uhc_requisition_cover_letter.pdf"
50
- image_path = medivo_fixture_path "Southeast.jpg"
49
+ path = medivo_pdf_fixture_path "uhc_requisition_cover_letter.pdf"
50
+ image_path = medivo_img_fixture_path "southeast.jpg"
51
51
  pdf_file = Medivo::PdfGenerator.variable_fields_with_images(
52
52
  path,
53
53
  uhc_cover_letter_fields,
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe Medivo::PdfGroup do
4
4
 
5
5
  it "can call read on the pdf after creating it" do
6
- path = medivo_fixture_path "hepc_result_faq.pdf"
6
+ path = medivo_pdf_fixture_path "hepc_result_faq.pdf"
7
7
  pdf_group = Medivo::PdfGroup.create do
8
8
  static_pdf(path)
9
9
  end
@@ -13,7 +13,7 @@ describe Medivo::PdfGroup do
13
13
 
14
14
  it "#variable_fields" do
15
15
  name = "Duderoni"
16
- path = medivo_fixture_path "hepc_negative_results.pdf"
16
+ path = medivo_pdf_fixture_path "hepc_negative_results.pdf"
17
17
  pdf_group = Medivo::PdfGroup.create do
18
18
  variable_fields(path, {:patient_name=>name})
19
19
  end
@@ -24,8 +24,8 @@ describe Medivo::PdfGroup do
24
24
 
25
25
  it "#variable_fields_with_images" do
26
26
  name = "Duderoni"
27
- path = medivo_fixture_path "hepc_negative_results.pdf"
28
- image_path = medivo_fixture_path "Southeast.jpg"
27
+ path = medivo_pdf_fixture_path "hepc_negative_results.pdf"
28
+ image_path = medivo_img_fixture_path "southeast.jpg"
29
29
  image_data = [{:path=> image_path, :options=>{:at=> [40, 100], :width=>180, :height=>28}}]
30
30
 
31
31
  pdf_group = Medivo::PdfGroup.create do
@@ -42,7 +42,7 @@ describe Medivo::PdfGroup do
42
42
 
43
43
  it "#lab_requisition" do
44
44
  requisition_id = 170420
45
- stub_order_requisition(requisition_id, medivo_fixture_path("lc_order_with_requisition.xml"))
45
+ stub_order_requisition(requisition_id, medivo_xml_fixture_path("lc_order_with_requisition.xml"))
46
46
 
47
47
  pdf_group = Medivo::PdfGroup.create do
48
48
  lab_requisition(requisition_id)
@@ -56,7 +56,7 @@ describe Medivo::PdfGroup do
56
56
 
57
57
  it "#lab_result" do
58
58
  requisition_id = 170420
59
- stub_order_result(requisition_id, medivo_fixture_path("lc_order_with_positive_results.xml"))
59
+ stub_order_result(requisition_id, medivo_xml_fixture_path("lc_order_with_positive_results.xml"))
60
60
 
61
61
  pdf_group = Medivo::PdfGroup.create do
62
62
  lab_result(requisition_id)
@@ -68,7 +68,7 @@ describe Medivo::PdfGroup do
68
68
  end
69
69
 
70
70
  it "#static_pdf" do
71
- path = medivo_fixture_path "hepc_result_faq.pdf"
71
+ path = medivo_pdf_fixture_path "hepc_result_faq.pdf"
72
72
  pdf_group = Medivo::PdfGroup.create do
73
73
  static_pdf(path)
74
74
  end
@@ -80,12 +80,12 @@ describe Medivo::PdfGroup do
80
80
 
81
81
  it "handles a combination of pdfs" do
82
82
  name = "Duderoni"
83
- cover_letter_path = medivo_fixture_path "hepc_negative_results.pdf"
83
+ cover_letter_path = medivo_pdf_fixture_path "hepc_negative_results.pdf"
84
84
 
85
85
  requisition_id = 170420
86
- stub_order_result(requisition_id, medivo_fixture_path("lc_order_with_normal_results.xml"))
86
+ stub_order_result(requisition_id, medivo_xml_fixture_path("lc_order_with_normal_results.xml"))
87
87
 
88
- faq_path = medivo_fixture_path "hepc_result_faq.pdf"
88
+ faq_path = medivo_pdf_fixture_path "hepc_result_faq.pdf"
89
89
 
90
90
  pdf_group = Medivo::PdfGroup.create do
91
91
  variable_fields(cover_letter_path, {:patient_name=>name})