medivo 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/app/assets/javascripts/medivo/lab_appointment/handlers.coffee +1 -1
  2. data/app/controllers/medivo/labs_controller.rb +1 -1
  3. data/lib/medivo/version.rb +1 -1
  4. data/spec/dummy/app/views/labs/search.html.haml +1 -1
  5. data/spec/dummy/log/development.log +232 -0
  6. data/spec/dummy/log/test.log +112 -0
  7. data/spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9 +0 -0
  8. data/spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf +0 -0
  9. data/spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911 +0 -0
  10. data/spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f +0 -0
  11. data/spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d +0 -0
  12. data/spec/dummy/tmp/cache/assets/CD8/DA0/sprockets%2F622aa5281d15503829a5f7a0bf56fc29 +0 -0
  13. data/spec/dummy/tmp/cache/assets/CDD/820/sprockets%2Fb28231960c7ac62eff9048e702a29c70 +0 -0
  14. data/spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86 +0 -0
  15. data/spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 +0 -0
  16. data/spec/dummy/tmp/cache/assets/D07/6B0/sprockets%2F69a2df619ff14da071309dac4196400e +0 -0
  17. data/spec/dummy/tmp/cache/assets/D1B/820/sprockets%2F92a83e15913997b3d9ac7ed437b1e44c +0 -0
  18. data/spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088 +0 -0
  19. data/spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037 +0 -0
  21. data/spec/dummy/tmp/cache/assets/D30/920/sprockets%2Fcc4603fc6441ca421a7d02886a81ab9d +0 -0
  22. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  23. data/spec/dummy/tmp/cache/assets/D36/870/sprockets%2Fce9e887568de873b133ae43d7c977f68 +0 -0
  24. data/spec/dummy/tmp/cache/assets/D41/250/sprockets%2F7b3c4426715dcd1feedc4a95e5444256 +0 -0
  25. data/spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6 +0 -0
  26. data/spec/dummy/tmp/cache/assets/D4C/7A0/sprockets%2Fbc635c7b186d1ef5178f4ed3722d868b +0 -0
  27. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  28. data/spec/dummy/tmp/cache/assets/D55/ED0/sprockets%2F0f673e42e816c6fe5b66a5c96f896f1a +0 -0
  29. data/spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116 +0 -0
  30. data/spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6 +0 -0
  31. data/spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094 +0 -0
  32. data/spec/dummy/tmp/cache/assets/D65/6D0/sprockets%2F3ce07ca1958d7ab3e80c4b3e0d24088c +0 -0
  33. data/spec/dummy/tmp/cache/assets/D69/130/sprockets%2Fbaa4ec50a34ce938c986612c2a47a64e +0 -0
  34. data/spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3 +0 -0
  35. data/spec/dummy/tmp/cache/assets/D76/720/sprockets%2F88d8aa1d2fb41ce79b8ec4150ea74748 +0 -0
  36. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6 +0 -0
  40. data/spec/dummy/tmp/cache/assets/DA1/640/sprockets%2F91874cbba5e63cd19d6a7bd3c8362dc4 +0 -0
  41. data/spec/dummy/tmp/cache/assets/DC1/230/sprockets%2F3a36cd467bdce1914a2b7af4ed4114cf +0 -0
  42. data/spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b +0 -0
  43. data/spec/dummy/tmp/cache/assets/DD1/FD0/sprockets%2Fa531f33dc9c5852d39d64a9eda44dacf +0 -0
  44. data/spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108 +0 -0
  45. data/spec/dummy/tmp/cache/assets/DFC/420/sprockets%2F502e2c683d1aaad6ac88966ffc4d2ade +0 -0
  46. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  47. data/spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4 +0 -0
  48. data/spec/models/appointment_spec.rb +6 -2
  49. data/spec/requests/labs_spec.rb +1 -1
  50. metadata +19 -19
@@ -14,7 +14,7 @@ $(document).ready ->
14
14
  .bind('ajax:beforeSend', (event, data)->
15
15
  form = $(this)
16
16
  messages = []
17
- date = form.find('input#appointment_date').val()
17
+ date = form.find('input#date').val()
18
18
  valid_date = Date.parseExact(date, "M/d/yyyy")
19
19
  messages.push("Date is invalid, must be mm/dd/yyyy format") unless valid_date
20
20
  # trying to set the lab code here did not work. so had to use click handler above
@@ -7,7 +7,7 @@ module Medivo
7
7
  end
8
8
 
9
9
  def appointment_data
10
- data = Medivo::Appointment.find(params[:lab_code], params[:appointment_date], params[:am_pm])
10
+ data = Medivo::Appointment.find(params[:lab_code], params[:date], params[:am_pm])
11
11
  render :json=> data
12
12
  rescue RestClient::RequestTimeout, RestClient::InternalServerError => te
13
13
  render :status=> te.http_code, :json=> {:message=>"Could be lab_code is wrong, or labcorp server is down"}
@@ -1,3 +1,3 @@
1
1
  module Medivo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -66,7 +66,7 @@ Search for appointment times
66
66
  Enter a Date
67
67
  .error_message
68
68
   
69
- = text_field_tag :appointment_date, (Date.today+3.days).strftime("%m/%d/%Y")
69
+ = text_field_tag :date, (Date.today+3.days).strftime("%m/%d/%Y")
70
70
  = hidden_field_tag :lab_code, '' # you have to fill this in dynamically with a lab_code
71
71
  %p
72
72
  = submit_tag "Search for appointments", :id=> :find_appointments, :class=>'button'
@@ -6877,3 +6877,235 @@ Started GET "/medivo/labs/appointment_data?utf8=%E2%9C%93&appointment_date=11%2F
6877
6877
  Processing by Medivo::LabsController#appointment_data as JS
6878
6878
  Parameters: {"utf8"=>"✓", "appointment_date"=>"11/13/2011", "lab_code"=>"20060", "commit"=>"Search for appointments"}
6879
6879
  Completed 200 OK in 7050ms (Views: 5.0ms)
6880
+
6881
+
6882
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-10 13:42:12 -0500
6883
+ Processing by LabsController#lab_search as HTML
6884
+ Parameters: {"zip_code"=>"90210"}
6885
+ Rendered labs/search.html.haml within layouts/application (47.5ms)
6886
+ Compiled application.css (0ms) (pid 22751)
6887
+ Compiled application.js (8ms) (pid 22751)
6888
+ Compiled jquery.js (1ms) (pid 22751)
6889
+ Compiled jquery_ujs.js (0ms) (pid 22751)
6890
+ Compiled medivo/lab_list/application.js (8ms) (pid 22751)
6891
+ Compiled medivo/handlebars.js (0ms) (pid 22751)
6892
+ Compiled medivo/helpers.js (182ms) (pid 22751)
6893
+ Compiled medivo/lab_list/models.js (175ms) (pid 22751)
6894
+ Compiled medivo/models.js (166ms) (pid 22751)
6895
+ Compiled medivo/lab_list/views.js (177ms) (pid 22751)
6896
+ Compiled medivo/views.js (164ms) (pid 22751)
6897
+ Compiled medivo/lab_list/handlers.js (191ms) (pid 22751)
6898
+ Compiled medivo/lab_list/sample/show_labs.js (159ms) (pid 22751)
6899
+ Compiled medivo/lab_appointment/application.js (12ms) (pid 22751)
6900
+ Compiled medivo/date.js (0ms) (pid 22751)
6901
+ Compiled medivo/lab_appointment/models.js (163ms) (pid 22751)
6902
+ Compiled medivo/lab_appointment/views.js (164ms) (pid 22751)
6903
+ Compiled medivo/lab_appointment/handlers.js (203ms) (pid 22751)
6904
+ Compiled medivo/lab_appointment/sample/show_appointments.js (155ms) (pid 22751)
6905
+ Completed 200 OK in 3742ms (Views: 2121.7ms)
6906
+
6907
+
6908
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6909
+ Served asset /application.css - 304 Not Modified (0ms)
6910
+
6911
+
6912
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6913
+ Served asset /jquery.js - 304 Not Modified (5ms)
6914
+
6915
+
6916
+ Started GET "/assets/medivo/handlebars.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6917
+ Served asset /medivo/handlebars.js - 304 Not Modified (4ms)
6918
+
6919
+
6920
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6921
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
6922
+
6923
+
6924
+ Started GET "/assets/medivo/helpers.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6925
+ Served asset /medivo/helpers.js - 304 Not Modified (2ms)
6926
+
6927
+
6928
+ Started GET "/assets/medivo/models.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6929
+ Served asset /medivo/models.js - 304 Not Modified (26ms)
6930
+
6931
+
6932
+ Started GET "/assets/medivo/lab_list/models.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6933
+ Served asset /medivo/lab_list/models.js - 304 Not Modified (2ms)
6934
+
6935
+
6936
+ Started GET "/assets/medivo/views.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6937
+ Served asset /medivo/views.js - 304 Not Modified (2ms)
6938
+
6939
+
6940
+ Started GET "/assets/medivo/lab_list/views.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6941
+ Served asset /medivo/lab_list/views.js - 304 Not Modified (2ms)
6942
+
6943
+
6944
+ Started GET "/assets/medivo/lab_list/handlers.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6945
+ Served asset /medivo/lab_list/handlers.js - 304 Not Modified (2ms)
6946
+
6947
+
6948
+ Started GET "/assets/medivo/lab_list/application.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6949
+ Served asset /medivo/lab_list/application.js - 304 Not Modified (3ms)
6950
+
6951
+
6952
+ Started GET "/assets/medivo/lab_list/sample/show_labs.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6953
+ Served asset /medivo/lab_list/sample/show_labs.js - 304 Not Modified (2ms)
6954
+
6955
+
6956
+ Started GET "/assets/medivo/date.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6957
+ Served asset /medivo/date.js - 304 Not Modified (3ms)
6958
+
6959
+
6960
+ Started GET "/assets/medivo/lab_appointment/models.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6961
+ Served asset /medivo/lab_appointment/models.js - 304 Not Modified (2ms)
6962
+
6963
+
6964
+ Started GET "/assets/medivo/lab_appointment/views.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6965
+ Served asset /medivo/lab_appointment/views.js - 304 Not Modified (2ms)
6966
+
6967
+
6968
+ Started GET "/assets/medivo/lab_appointment/handlers.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6969
+ Served asset /medivo/lab_appointment/handlers.js - 304 Not Modified (2ms)
6970
+
6971
+
6972
+ Started GET "/assets/medivo/lab_appointment/application.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6973
+ Served asset /medivo/lab_appointment/application.js - 304 Not Modified (3ms)
6974
+
6975
+
6976
+ Started GET "/assets/medivo/lab_appointment/sample/show_appointments.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6977
+ Served asset /medivo/lab_appointment/sample/show_appointments.js - 304 Not Modified (2ms)
6978
+
6979
+
6980
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-10 13:42:15 -0500
6981
+ Served asset /application.js - 304 Not Modified (0ms)
6982
+
6983
+
6984
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-10 13:42:16 -0500
6985
+ Served asset /medivo/markerA.png - 304 Not Modified (2ms)
6986
+
6987
+
6988
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-10 13:42:16 -0500
6989
+ Served asset /medivo/markerB.png - 304 Not Modified (3ms)
6990
+
6991
+
6992
+ Started GET "/assets/medivo/markerC.png" for 127.0.0.1 at 2011-11-10 13:42:16 -0500
6993
+ Served asset /medivo/markerC.png - 304 Not Modified (2ms)
6994
+
6995
+
6996
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-10 13:42:16 -0500
6997
+ Served asset /medivo/arrow.png - 304 Not Modified (2ms)
6998
+
6999
+
7000
+ Started GET "/medivo/labs/appointment_data?utf8=%E2%9C%93&appointment_date=11%2F13%2F2011&lab_code=20060&commit=Search+for+appointments" for 127.0.0.1 at 2011-11-10 13:42:18 -0500
7001
+ Processing by Medivo::LabsController#appointment_data as JS
7002
+ Parameters: {"utf8"=>"✓", "appointment_date"=>"11/13/2011", "lab_code"=>"20060", "commit"=>"Search for appointments"}
7003
+ Completed 200 OK in 13ms (Views: 5.1ms)
7004
+
7005
+
7006
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-10 13:51:04 -0500
7007
+ Processing by LabsController#lab_search as HTML
7008
+ Parameters: {"zip_code"=>"90210"}
7009
+ Rendered labs/search.html.haml within layouts/application (21.2ms)
7010
+ Compiled application.js (8ms) (pid 22751)
7011
+ Compiled medivo/lab_appointment/application.js (36ms) (pid 22751)
7012
+ Compiled medivo/lab_appointment/handlers.js (171ms) (pid 22751)
7013
+ Completed 200 OK in 1981ms (Views: 268.5ms)
7014
+
7015
+
7016
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7017
+ Served asset /application.css - 304 Not Modified (0ms)
7018
+
7019
+
7020
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7021
+ Served asset /jquery.js - 304 Not Modified (0ms)
7022
+
7023
+
7024
+ Started GET "/assets/medivo/handlebars.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7025
+ Served asset /medivo/handlebars.js - 304 Not Modified (0ms)
7026
+
7027
+
7028
+ Started GET "/assets/medivo/helpers.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7029
+ Served asset /medivo/helpers.js - 304 Not Modified (0ms)
7030
+
7031
+
7032
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7033
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
7034
+
7035
+
7036
+ Started GET "/assets/medivo/models.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7037
+ Served asset /medivo/models.js - 304 Not Modified (0ms)
7038
+
7039
+
7040
+ Started GET "/assets/medivo/lab_list/models.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7041
+ Served asset /medivo/lab_list/models.js - 304 Not Modified (0ms)
7042
+
7043
+
7044
+ Started GET "/assets/medivo/views.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7045
+ Served asset /medivo/views.js - 304 Not Modified (0ms)
7046
+
7047
+
7048
+ Started GET "/assets/medivo/lab_list/views.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7049
+ Served asset /medivo/lab_list/views.js - 304 Not Modified (0ms)
7050
+
7051
+
7052
+ Started GET "/assets/medivo/lab_list/handlers.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7053
+ Served asset /medivo/lab_list/handlers.js - 304 Not Modified (0ms)
7054
+
7055
+
7056
+ Started GET "/assets/medivo/lab_list/application.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7057
+ Served asset /medivo/lab_list/application.js - 304 Not Modified (0ms)
7058
+
7059
+
7060
+ Started GET "/assets/medivo/lab_list/sample/show_labs.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7061
+ Served asset /medivo/lab_list/sample/show_labs.js - 304 Not Modified (0ms)
7062
+
7063
+
7064
+ Started GET "/assets/medivo/date.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7065
+ Served asset /medivo/date.js - 304 Not Modified (0ms)
7066
+
7067
+
7068
+ Started GET "/assets/medivo/lab_appointment/models.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7069
+ Served asset /medivo/lab_appointment/models.js - 304 Not Modified (0ms)
7070
+
7071
+
7072
+ Started GET "/assets/medivo/lab_appointment/views.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7073
+ Served asset /medivo/lab_appointment/views.js - 304 Not Modified (0ms)
7074
+
7075
+
7076
+ Started GET "/assets/medivo/lab_appointment/handlers.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7077
+ Served asset /medivo/lab_appointment/handlers.js - 200 OK (3ms)
7078
+
7079
+
7080
+ Started GET "/assets/medivo/lab_appointment/application.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7081
+ Served asset /medivo/lab_appointment/application.js - 200 OK (4ms)
7082
+
7083
+
7084
+ Started GET "/assets/medivo/lab_appointment/sample/show_appointments.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7085
+ Served asset /medivo/lab_appointment/sample/show_appointments.js - 304 Not Modified (0ms)
7086
+
7087
+
7088
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7089
+ Served asset /application.js - 200 OK (1ms)
7090
+
7091
+
7092
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7093
+ Served asset /medivo/markerA.png - 304 Not Modified (0ms)
7094
+
7095
+
7096
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7097
+ Served asset /medivo/markerB.png - 304 Not Modified (0ms)
7098
+
7099
+
7100
+ Started GET "/assets/medivo/markerC.png" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7101
+ Served asset /medivo/markerC.png - 304 Not Modified (0ms)
7102
+
7103
+
7104
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-10 13:51:06 -0500
7105
+ Served asset /medivo/arrow.png - 304 Not Modified (0ms)
7106
+
7107
+
7108
+ Started GET "/medivo/labs/appointment_data?utf8=%E2%9C%93&date=11%2F13%2F2011&lab_code=20060&commit=Search+for+appointments" for 127.0.0.1 at 2011-11-10 13:51:08 -0500
7109
+ Processing by Medivo::LabsController#appointment_data as JS
7110
+ Parameters: {"utf8"=>"✓", "date"=>"11/13/2011", "lab_code"=>"20060", "commit"=>"Search for appointments"}
7111
+ Completed 200 OK in 12ms (Views: 4.5ms)
@@ -1266,4 +1266,116 @@ Served asset /medivo/arrow.png - 200 OK (5ms)
1266
1266
  Started GET "/medivo/labs/appointment_data?appointment_date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-10 13:32:06 -0500
1267
1267
  Processing by Medivo::LabsController#appointment_data as HTML
1268
1268
  Parameters: {"appointment_date"=>"11/01/2011", "lab_code"=>"20060"}
1269
+ Completed 200 OK in 1ms (Views: 0.4ms)
1270
+ Processing by OrdersController#download_requisition as HTML
1271
+ Rendered text template (0.0ms)
1272
+ Sent data unitedhealthcare_requisition.pdf (73.5ms)
1273
+ Completed 200 OK in 891ms (Views: 72.8ms)
1274
+ Processing by OrdersController#download_result as HTML
1275
+ Sent data unitedhealthcare_result.pdf (2.0ms)
1276
+ Completed 200 OK in 726ms (Views: 1.4ms)
1277
+ Processing by OrdersController#download_requisition as HTML
1278
+ Rendered text template (0.0ms)
1279
+ Sent data unitedhealthcare_requisition.pdf (70.9ms)
1280
+ Completed 200 OK in 896ms (Views: 70.3ms)
1281
+ Processing by OrdersController#download_result as HTML
1282
+ Sent data unitedhealthcare_result.pdf (2.2ms)
1283
+ Completed 200 OK in 700ms (Views: 1.4ms)
1284
+
1285
+
1286
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-10 13:48:58 -0500
1287
+ Processing by Medivo::LabsController#lab_data as HTML
1288
+ Parameters: {"zip_code"=>"90210"}
1289
+ Completed 200 OK in 370ms (Views: 1.7ms)
1290
+
1291
+
1292
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-10 13:49:01 -0500
1293
+ Processing by LabsController#lab_search as HTML
1294
+ Parameters: {"zip_code"=>"90210"}
1295
+ Completed 200 OK in 297ms (Views: 33.0ms)
1296
+
1297
+
1298
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-10 13:49:01 -0500
1299
+ Compiled application.css (1ms) (pid 25310)
1300
+ Served asset /application.css - 200 OK (8ms)
1301
+
1302
+
1303
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-10 13:49:01 -0500
1304
+ Compiled application.js (7ms) (pid 25310)
1305
+ Compiled jquery.js (1ms) (pid 25310)
1306
+ Compiled jquery_ujs.js (0ms) (pid 25310)
1307
+ Compiled medivo/lab_list/application.js (7ms) (pid 25310)
1308
+ Compiled medivo/handlebars.js (0ms) (pid 25310)
1309
+ Compiled medivo/helpers.js (173ms) (pid 25310)
1310
+ Compiled medivo/lab_list/models.js (184ms) (pid 25310)
1311
+ Compiled medivo/models.js (169ms) (pid 25310)
1312
+ Compiled medivo/lab_list/views.js (180ms) (pid 25310)
1313
+ Compiled medivo/views.js (169ms) (pid 25310)
1314
+ Compiled medivo/lab_list/handlers.js (165ms) (pid 25310)
1315
+ Compiled medivo/lab_list/sample/show_labs.js (161ms) (pid 25310)
1316
+ Compiled medivo/lab_appointment/application.js (11ms) (pid 25310)
1317
+ Compiled medivo/date.js (0ms) (pid 25310)
1318
+ Compiled medivo/lab_appointment/models.js (163ms) (pid 25310)
1319
+ Compiled medivo/lab_appointment/views.js (164ms) (pid 25310)
1320
+ Compiled medivo/lab_appointment/handlers.js (237ms) (pid 25310)
1321
+ Compiled medivo/lab_appointment/sample/show_appointments.js (160ms) (pid 25310)
1322
+ Served asset /application.js - 200 OK (2045ms)
1323
+
1324
+
1325
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-10 13:49:03 -0500
1326
+ Served asset /medivo/markerA.png - 200 OK (5ms)
1327
+
1328
+
1329
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-10 13:49:03 -0500
1330
+ Served asset /medivo/markerB.png - 200 OK (3ms)
1331
+
1332
+
1333
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-10 13:49:03 -0500
1334
+ Served asset /medivo/arrow.png - 200 OK (7ms)
1335
+
1336
+
1337
+ Started GET "/medivo/labs/appointment_data?appointment_date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-10 13:49:03 -0500
1338
+ Processing by Medivo::LabsController#appointment_data as HTML
1339
+ Parameters: {"appointment_date"=>"11/01/2011", "lab_code"=>"20060"}
1340
+ Completed 500 Internal Server Error in 1ms (Views: 0.4ms)
1341
+
1342
+
1343
+ Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-10 13:51:54 -0500
1344
+ Processing by Medivo::LabsController#lab_data as HTML
1345
+ Parameters: {"zip_code"=>"90210"}
1346
+ Completed 200 OK in 231ms (Views: 1.8ms)
1347
+
1348
+
1349
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-10 13:51:56 -0500
1350
+ Processing by LabsController#lab_search as HTML
1351
+ Parameters: {"zip_code"=>"90210"}
1352
+ Completed 200 OK in 266ms (Views: 87.8ms)
1353
+
1354
+
1355
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-10 13:51:57 -0500
1356
+ Served asset /application.css - 200 OK (4ms)
1357
+
1358
+
1359
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-10 13:51:57 -0500
1360
+ Compiled application.js (8ms) (pid 25437)
1361
+ Compiled medivo/lab_appointment/application.js (8ms) (pid 25437)
1362
+ Compiled medivo/lab_appointment/handlers.js (172ms) (pid 25437)
1363
+ Served asset /application.js - 200 OK (250ms)
1364
+
1365
+
1366
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-10 13:51:57 -0500
1367
+ Served asset /medivo/markerA.png - 200 OK (2ms)
1368
+
1369
+
1370
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-10 13:51:57 -0500
1371
+ Served asset /medivo/markerB.png - 200 OK (1ms)
1372
+
1373
+
1374
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-10 13:51:57 -0500
1375
+ Served asset /medivo/arrow.png - 200 OK (2ms)
1376
+
1377
+
1378
+ Started GET "/medivo/labs/appointment_data?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-10 13:51:58 -0500
1379
+ Processing by Medivo::LabsController#appointment_data as HTML
1380
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
1269
1381
  Completed 200 OK in 1ms (Views: 0.4ms)
@@ -23,8 +23,12 @@ describe Medivo::Appointment do
23
23
  returned_times('11/04/2011', '').should == all_times.slice(1,2)
24
24
  end
25
25
 
26
- it "filters out past am or pm times" do
27
- returned_times('11/04/2011', 'AM').should == all_times.slice(1,1)
26
+ it "filters out past or pm times" do
27
+ returned_times('11/04/2011', 'AM').should == ["11/04/2011|08:30 AM"]
28
+ end
29
+
30
+ it "filters out past or am times" do
31
+ returned_times('11/04/2011', 'PM').should == ["11/04/2011|08:30 PM"]
28
32
  end
29
33
  end
30
34
 
@@ -39,7 +39,7 @@ describe 'LabController' do
39
39
  it "/labs/appointments returns appointment data as json" do
40
40
  body = {'time'=> ["11/03/2011|08:30 AM", "11/04/2011|08:30 AM"]}
41
41
  stub(Medivo::Appointment).find(@lab_code, @date, nil) { body }
42
- visit Medivo::Engine.routes.url_helpers.data_appointments_path :lab_code=>@lab_code, :appointment_date=>@date
42
+ visit Medivo::Engine.routes.url_helpers.data_appointments_path :lab_code=>@lab_code, :date=>@date
43
43
  page.body.should match "08:30 AM"
44
44
  end
45
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2165213560 !ruby/object:Gem::Requirement
17
+ requirement: &2153317660 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2165213560
25
+ version_requirements: *2153317660
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2165213140 !ruby/object:Gem::Requirement
28
+ requirement: &2153317220 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2165213140
36
+ version_requirements: *2153317220
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2165212680 !ruby/object:Gem::Requirement
39
+ requirement: &2153316740 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2165212680
47
+ version_requirements: *2153316740
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2165212260 !ruby/object:Gem::Requirement
50
+ requirement: &2153316260 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2165212260
58
+ version_requirements: *2153316260
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: geocoder
61
- requirement: &2165211840 !ruby/object:Gem::Requirement
61
+ requirement: &2153315840 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2165211840
69
+ version_requirements: *2153315840
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rest-client
72
- requirement: &2165211420 !ruby/object:Gem::Requirement
72
+ requirement: &2153315420 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2165211420
80
+ version_requirements: *2153315420
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: pdfkit
83
- requirement: &2165210980 !ruby/object:Gem::Requirement
83
+ requirement: &2153315000 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *2165210980
91
+ version_requirements: *2153315000
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: prawn
94
- requirement: &2165210560 !ruby/object:Gem::Requirement
94
+ requirement: &2153314500 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '0'
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *2165210560
102
+ version_requirements: *2153314500
103
103
  description: Use the medivo platform to find lab locations, make labcorp appointments,
104
104
  place lab orders
105
105
  email:
@@ -301,7 +301,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
301
301
  version: '0'
302
302
  segments:
303
303
  - 0
304
- hash: 4245641511955668076
304
+ hash: -80493960223806084
305
305
  required_rubygems_version: !ruby/object:Gem::Requirement
306
306
  none: false
307
307
  requirements:
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  version: '0'
311
311
  segments:
312
312
  - 0
313
- hash: 4245641511955668076
313
+ hash: -80493960223806084
314
314
  requirements: []
315
315
  rubyforge_project:
316
316
  rubygems_version: 1.6.2