medivo 0.2.19 → 0.2.20

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 (37) hide show
  1. data/app/controllers/medivo/labs_controller.rb +2 -2
  2. data/app/models/medivo/appointment.rb +2 -1
  3. data/lib/medivo/version.rb +1 -1
  4. data/spec/dummy/log/development.log +137 -0
  5. data/spec/dummy/log/test.log +356 -0
  6. data/spec/dummy/tmp/cache/assets/C46/F00/sprockets%2F2281d588b540056c5a7306c32a3761b9 +0 -0
  7. data/spec/dummy/tmp/cache/assets/C53/C80/sprockets%2F9297b5f504687910109d311f03f8a7b3 +0 -0
  8. data/spec/dummy/tmp/cache/assets/C81/D00/sprockets%2F64f056bd752d271308a86a6f865b1911 +0 -0
  9. data/spec/dummy/tmp/cache/assets/CB4/BD0/sprockets%2F3378f27c0d4f5e6d708665b22707a31f +0 -0
  10. data/spec/dummy/tmp/cache/assets/CB9/3B0/sprockets%2F367168463c7673b00086def7783ae5bb +0 -0
  11. data/spec/dummy/tmp/cache/assets/CC3/EF0/sprockets%2F453b504c1f8f374578636f699eaa455d +0 -0
  12. data/spec/dummy/tmp/cache/assets/CD5/670/sprockets%2F7f42231e2382a32f5a39dc7807f0b4d1 +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/CF7/0D0/sprockets%2Ff6b91b7558f31378d6a71f5791eff480 +0 -0
  17. data/spec/dummy/tmp/cache/assets/D20/F10/sprockets%2Fb2e907e4faa85fe755f4439e3b229088 +0 -0
  18. data/spec/dummy/tmp/cache/assets/D29/000/sprockets%2F61a10ddf57f1129c02a1049bfed6e007 +0 -0
  19. data/spec/dummy/tmp/cache/assets/D2C/F80/sprockets%2F399f6d5eb273936af7ff8f35a77c5037 +0 -0
  20. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  21. data/spec/dummy/tmp/cache/assets/D45/320/sprockets%2Fc50ff379a1bdf1dd4d22249058749cf6 +0 -0
  22. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  23. data/spec/dummy/tmp/cache/assets/D5D/3E0/sprockets%2F63fea6cc142b5f02da93bf81e70b2116 +0 -0
  24. data/spec/dummy/tmp/cache/assets/D60/030/sprockets%2Ffc9485f617fc5e9b8918755d2e08ecc6 +0 -0
  25. data/spec/dummy/tmp/cache/assets/D64/C50/sprockets%2F22ee6fb2ab1ea9694ac7f0f41a406094 +0 -0
  26. data/spec/dummy/tmp/cache/assets/D74/9A0/sprockets%2F0ca4e6e833c72156fc7e7d5f007d9ce3 +0 -0
  27. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  28. data/spec/dummy/tmp/cache/assets/D88/2C0/sprockets%2F452ab3ebb1912cf1c2ba617eec52a718 +0 -0
  29. data/spec/dummy/tmp/cache/assets/DCA/B80/sprockets%2Fb4aad54185f42b1b871997ef2dc2fabb +0 -0
  30. data/spec/dummy/tmp/cache/assets/DCE/E80/sprockets%2Fc71ec62157b9cc7aabfc030955cef87b +0 -0
  31. data/spec/dummy/tmp/cache/assets/DD4/2B0/sprockets%2Fef214a63f29afe7f3cbffc65af943108 +0 -0
  32. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  33. data/spec/dummy/tmp/cache/assets/E32/FC0/sprockets%2Fe55fb2eef11567fe04fdaf7e73af5ba4 +0 -0
  34. data/spec/dummy/tmp/pids/server.pid +1 -1
  35. data/spec/models/appointment_spec.rb +5 -5
  36. data/spec/requests/labs_spec.rb +3 -2
  37. metadata +19 -19
@@ -7,10 +7,10 @@ module Medivo
7
7
  end
8
8
 
9
9
  def find_appointment
10
- data = Medivo::Appointment.find(params[:lab_code], params[:date], params[:am_pm])
10
+ date = Date.strptime(params[:date], "%m/%d/%Y")
11
+ data = Medivo::Appointment.find(params[:lab_code], date, params[:am_pm])
11
12
  render :json=> {times: data}
12
13
  rescue => e
13
- p e.backtrace
14
14
  appointment_error_handler(e)
15
15
  end
16
16
 
@@ -20,7 +20,8 @@ module Medivo
20
20
  # @throws exception mainly Restclient::Exception types
21
21
  def find(lab_code, date, am_pm='')
22
22
  if real_data?
23
- data = resource.get :params=>{:labcorp_id=>lab_code, :appointment_date=>date}
23
+ data = resource.get :params=>{:labcorp_id=>lab_code,
24
+ :appointment_date=>date.strftime("%m/%d/%Y")}
24
25
  # data is json encoded hash: { :times => ['time1', 'time2'] }
25
26
  data = JSON.parse(data)['times']
26
27
  else
@@ -1,3 +1,3 @@
1
1
  module Medivo
2
- VERSION = "0.2.19"
2
+ VERSION = "0.2.20"
3
3
  end
@@ -21657,3 +21657,140 @@ Started GET "/medivo/labs/find_appointment?utf8=%E2%9C%93&date=11%2F19%2F2011&la
21657
21657
  Processing by Medivo::LabsController#find_appointment as JS
21658
21658
  Parameters: {"utf8"=>"✓", "date"=>"11/19/2011", "lab_code"=>"21926", "commit"=>"Search for appointments"}
21659
21659
  Completed 200 OK in 2671ms (Views: 4.5ms)
21660
+
21661
+
21662
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-16 11:11:15 -0500
21663
+ Processing by LabsController#lab_search as HTML
21664
+ Parameters: {"zip_code"=>"90210"}
21665
+ Rendered labs/search.html.haml within layouts/application (38.8ms)
21666
+ Compiled application.css (0ms) (pid 14515)
21667
+ Compiled jquery.js (3ms) (pid 14515)
21668
+ Compiled jquery_ujs.js (0ms) (pid 14515)
21669
+ Compiled medivo/handlebars.js (0ms) (pid 14515)
21670
+ Completed 200 OK in 1928ms (Views: 157.8ms)
21671
+
21672
+
21673
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21674
+ Served asset /application.css - 304 Not Modified (0ms)
21675
+
21676
+
21677
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21678
+ Served asset /jquery.js - 304 Not Modified (3ms)
21679
+
21680
+
21681
+ Started GET "/assets/medivo/handlebars.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21682
+ Served asset /medivo/handlebars.js - 304 Not Modified (3ms)
21683
+
21684
+
21685
+ Started GET "/assets/medivo/helpers.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21686
+ Served asset /medivo/helpers.js - 304 Not Modified (3ms)
21687
+
21688
+
21689
+ Started GET "/assets/medivo/lab_list/models.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21690
+ Served asset /medivo/lab_list/models.js - 304 Not Modified (3ms)
21691
+
21692
+
21693
+ Started GET "/assets/medivo/models.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21694
+ Served asset /medivo/models.js - 304 Not Modified (2ms)
21695
+
21696
+
21697
+ Started GET "/assets/medivo/views.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21698
+ Served asset /medivo/views.js - 304 Not Modified (3ms)
21699
+
21700
+
21701
+ Started GET "/assets/medivo/lab_list/views.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21702
+ Served asset /medivo/lab_list/views.js - 304 Not Modified (3ms)
21703
+
21704
+
21705
+ Started GET "/assets/medivo/lab_list/handlers.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21706
+ Served asset /medivo/lab_list/handlers.js - 304 Not Modified (2ms)
21707
+
21708
+
21709
+ Started GET "/assets/medivo/lab_list/application.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21710
+ Served asset /medivo/lab_list/application.js - 304 Not Modified (5ms)
21711
+
21712
+
21713
+ Started GET "/assets/medivo/lab_list/sample/show_labs.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21714
+ Served asset /medivo/lab_list/sample/show_labs.js - 304 Not Modified (3ms)
21715
+
21716
+
21717
+ Started GET "/assets/medivo/date.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21718
+ Served asset /medivo/date.js - 304 Not Modified (34ms)
21719
+
21720
+
21721
+ Started GET "/assets/medivo/lab_appointment/models.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21722
+ Served asset /medivo/lab_appointment/models.js - 304 Not Modified (3ms)
21723
+
21724
+
21725
+ Started GET "/assets/medivo/lab_appointment/views.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21726
+ Served asset /medivo/lab_appointment/views.js - 304 Not Modified (3ms)
21727
+
21728
+
21729
+ Started GET "/assets/medivo/lab_appointment/handlers.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21730
+ Served asset /medivo/lab_appointment/handlers.js - 304 Not Modified (4ms)
21731
+
21732
+
21733
+ Started GET "/assets/medivo/lab_appointment/application.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21734
+ Served asset /medivo/lab_appointment/application.js - 304 Not Modified (4ms)
21735
+
21736
+
21737
+ Started GET "/assets/medivo/lab_appointment/sample/show_appointments.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21738
+ Served asset /medivo/lab_appointment/sample/show_appointments.js - 304 Not Modified (3ms)
21739
+
21740
+
21741
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21742
+ Served asset /application.js - 304 Not Modified (1ms)
21743
+
21744
+
21745
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21746
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
21747
+
21748
+
21749
+ Started GET "/assets/medivo/ajax_waiting.gif" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21750
+ Served asset /medivo/ajax_waiting.gif - 304 Not Modified (3ms)
21751
+
21752
+
21753
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21754
+ Served asset /medivo/markerA.png - 304 Not Modified (2ms)
21755
+
21756
+
21757
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21758
+ Served asset /medivo/markerB.png - 304 Not Modified (3ms)
21759
+
21760
+
21761
+ Started GET "/assets/medivo/markerC.png" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
21762
+ Served asset /medivo/markerC.png - 304 Not Modified (2ms)
21763
+
21764
+
21765
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-16 11:11:18 -0500
21766
+ Served asset /medivo/arrow.png - 304 Not Modified (2ms)
21767
+
21768
+
21769
+ Started GET "/medivo/labs?utf8=%E2%9C%93&zip_code=10009&commit=Search" for 127.0.0.1 at 2011-11-16 11:11:24 -0500
21770
+ Processing by Medivo::LabsController#index as JS
21771
+ Parameters: {"utf8"=>"✓", "zip_code"=>"10009", "commit"=>"Search"}
21772
+ Completed 200 OK in 1656ms (Views: 19.0ms)
21773
+
21774
+
21775
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-16 11:11:25 -0500
21776
+ Served asset /medivo/markerA.png - 304 Not Modified (0ms)
21777
+
21778
+
21779
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-16 11:11:25 -0500
21780
+ Served asset /medivo/markerB.png - 304 Not Modified (0ms)
21781
+
21782
+
21783
+ Started GET "/assets/medivo/markerC.png" for 127.0.0.1 at 2011-11-16 11:11:25 -0500
21784
+ Served asset /medivo/markerC.png - 304 Not Modified (0ms)
21785
+
21786
+
21787
+ Started GET "/medivo/labs/find_appointment?utf8=%E2%9C%93&date=11%2F19%2F2011&lab_code=23021&commit=Search+for+appointments" for 127.0.0.1 at 2011-11-16 11:11:27 -0500
21788
+ Processing by Medivo::LabsController#find_appointment as JS
21789
+ Parameters: {"utf8"=>"✓", "date"=>"11/19/2011", "lab_code"=>"23021", "commit"=>"Search for appointments"}
21790
+ Completed 400 Bad Request in 775ms (Views: 4.7ms)
21791
+
21792
+
21793
+ Started GET "/medivo/labs/find_appointment?utf8=%E2%9C%93&date=11%2F19%2F2011&lab_code=23021&commit=Search+for+appointments" for 127.0.0.1 at 2011-11-16 11:12:36 -0500
21794
+ Processing by Medivo::LabsController#find_appointment as JS
21795
+ Parameters: {"utf8"=>"✓", "date"=>"11/19/2011", "lab_code"=>"23021", "commit"=>"Search for appointments"}
21796
+ Completed 200 OK in 3128ms (Views: 4.7ms)
@@ -3236,3 +3236,359 @@ Started POST "/medivo/labs/make_appointment" for 127.0.0.1 at 2011-11-16 10:29:3
3236
3236
  Processing by Medivo::LabsController#make_appointment as HTML
3237
3237
  Parameters: {"lab_code"=>"20060", "time"=>"2011-11-01 08:30:00 UTC", "user"=>{"first_name"=>"dude", "last_name"=>nil, "date_of_birth"=>"12/28/1980", "email_address"=>"dudeman@dude.com", "phone_number"=>"4155551212"}}
3238
3238
  Completed 200 OK in 3ms (Views: 0.3ms)
3239
+ Processing by OrdersController#download_requisition as HTML
3240
+ Rendered text template (0.0ms)
3241
+ Sent data unitedhealthcare_requisition.pdf (93.6ms)
3242
+ Completed 200 OK in 1045ms (Views: 92.5ms)
3243
+ Processing by OrdersController#download_result as HTML
3244
+ Sent data unitedhealthcare_result.pdf (1.8ms)
3245
+ Completed 200 OK in 767ms (Views: 0.9ms)
3246
+
3247
+
3248
+ Started GET "/medivo/labs?zip_code=90210" for 127.0.0.1 at 2011-11-16 11:11:14 -0500
3249
+ Processing by Medivo::LabsController#index as HTML
3250
+ Parameters: {"zip_code"=>"90210"}
3251
+ Completed 200 OK in 465ms (Views: 2.1ms)
3252
+
3253
+
3254
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-16 11:11:16 -0500
3255
+ Processing by LabsController#lab_search as HTML
3256
+ Parameters: {"zip_code"=>"90210"}
3257
+ Completed 200 OK in 274ms (Views: 42.7ms)
3258
+
3259
+
3260
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
3261
+ Compiled application.css (2ms) (pid 14528)
3262
+ Served asset /application.css - 200 OK (12ms)
3263
+
3264
+
3265
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-16 11:11:17 -0500
3266
+ Compiled application.js (12ms) (pid 14528)
3267
+ Compiled jquery.js (3ms) (pid 14528)
3268
+ Compiled jquery_ujs.js (0ms) (pid 14528)
3269
+ Compiled medivo/lab_list/application.js (8ms) (pid 14528)
3270
+ Compiled medivo/handlebars.js (0ms) (pid 14528)
3271
+ Compiled medivo/helpers.js (320ms) (pid 14528)
3272
+ Compiled medivo/lab_list/models.js (206ms) (pid 14528)
3273
+ Compiled medivo/models.js (196ms) (pid 14528)
3274
+ Compiled medivo/lab_list/views.js (268ms) (pid 14528)
3275
+ Compiled medivo/views.js (180ms) (pid 14528)
3276
+ Compiled medivo/lab_list/handlers.js (184ms) (pid 14528)
3277
+ Compiled medivo/lab_list/sample/show_labs.js (165ms) (pid 14528)
3278
+ Compiled medivo/lab_appointment/application.js (13ms) (pid 14528)
3279
+ Compiled medivo/date.js (0ms) (pid 14528)
3280
+ Compiled medivo/lab_appointment/models.js (172ms) (pid 14528)
3281
+ Compiled medivo/lab_appointment/views.js (166ms) (pid 14528)
3282
+ Compiled medivo/lab_appointment/handlers.js (177ms) (pid 14528)
3283
+ Compiled medivo/lab_appointment/sample/show_appointments.js (160ms) (pid 14528)
3284
+ Served asset /application.js - 200 OK (2332ms)
3285
+
3286
+
3287
+ Started GET "/assets/medivo/ajax_waiting.gif" for 127.0.0.1 at 2011-11-16 11:11:19 -0500
3288
+ Served asset /medivo/ajax_waiting.gif - 200 OK (3ms)
3289
+
3290
+
3291
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-16 11:11:19 -0500
3292
+ Served asset /medivo/markerA.png - 200 OK (5ms)
3293
+
3294
+
3295
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-16 11:11:19 -0500
3296
+ Served asset /medivo/markerB.png - 200 OK (4ms)
3297
+
3298
+
3299
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-16 11:11:19 -0500
3300
+ Served asset /medivo/arrow.png - 200 OK (5ms)
3301
+
3302
+
3303
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 11:11:20 -0500
3304
+ Processing by Medivo::LabsController#find_appointment as HTML
3305
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3306
+ Completed 500 Internal Server Error in 2ms (Views: 0.4ms)
3307
+
3308
+
3309
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 11:11:20 -0500
3310
+ Processing by Medivo::LabsController#find_appointment as HTML
3311
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3312
+ Completed 500 Internal Server Error in 1ms (Views: 0.3ms)
3313
+
3314
+
3315
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 11:11:20 -0500
3316
+ Processing by Medivo::LabsController#find_appointment as HTML
3317
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3318
+ Completed 500 Internal Server Error in 1ms (Views: 0.3ms)
3319
+
3320
+
3321
+ Started POST "/medivo/labs/make_appointment" for 127.0.0.1 at 2011-11-16 11:11:20 -0500
3322
+ Processing by Medivo::LabsController#make_appointment as HTML
3323
+ Parameters: {"lab_code"=>"20060", "time"=>"2011-11-01 08:30:00 UTC", "user"=>{"first_name"=>"dude", "last_name"=>nil, "date_of_birth"=>"12/28/1980", "email_address"=>"dudeman@dude.com", "phone_number"=>"4155551212"}}
3324
+ Completed 200 OK in 3ms (Views: 0.2ms)
3325
+ Processing by OrdersController#download_requisition as HTML
3326
+ Rendered text template (0.0ms)
3327
+ Sent data unitedhealthcare_requisition.pdf (75.3ms)
3328
+ Completed 200 OK in 969ms (Views: 74.3ms)
3329
+ Processing by OrdersController#download_result as HTML
3330
+ Sent data unitedhealthcare_result.pdf (2.6ms)
3331
+ Completed 200 OK in 693ms (Views: 1.2ms)
3332
+
3333
+
3334
+ Started GET "/medivo/labs?zip_code=90210" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3335
+ Processing by Medivo::LabsController#index as HTML
3336
+ Parameters: {"zip_code"=>"90210"}
3337
+ Completed 200 OK in 0ms (Views: 0.0ms)
3338
+
3339
+
3340
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3341
+ Processing by LabsController#lab_search as HTML
3342
+ Parameters: {"zip_code"=>"90210"}
3343
+ Completed 200 OK in 0ms (Views: 0.0ms)
3344
+
3345
+
3346
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3347
+ Compiled application.css (0ms) (pid 14644)
3348
+ Served asset /application.css - 200 OK (0ms)
3349
+
3350
+
3351
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3352
+ Compiled jquery.js (0ms) (pid 14644)
3353
+ Compiled jquery_ujs.js (0ms) (pid 14644)
3354
+ Compiled medivo/handlebars.js (0ms) (pid 14644)
3355
+ Served asset /application.js - 200 OK (0ms)
3356
+
3357
+
3358
+ Started GET "/assets/medivo/ajax_waiting.gif" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3359
+ Served asset /medivo/ajax_waiting.gif - 200 OK (0ms)
3360
+
3361
+
3362
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3363
+ Served asset /medivo/markerA.png - 200 OK (0ms)
3364
+
3365
+
3366
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3367
+ Served asset /medivo/markerB.png - 200 OK (0ms)
3368
+
3369
+
3370
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3371
+ Served asset /medivo/arrow.png - 200 OK (0ms)
3372
+
3373
+
3374
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3375
+ Processing by Medivo::LabsController#find_appointment as HTML
3376
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3377
+ Completed 500 Internal Server Error in 0ms (Views: 0.0ms)
3378
+
3379
+
3380
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3381
+ Processing by Medivo::LabsController#find_appointment as HTML
3382
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3383
+ Completed 500 Internal Server Error in 0ms (Views: 0.0ms)
3384
+
3385
+
3386
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3387
+ Processing by Medivo::LabsController#find_appointment as HTML
3388
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3389
+ Completed 500 Internal Server Error in 0ms (Views: 0.0ms)
3390
+
3391
+
3392
+ Started POST "/medivo/labs/make_appointment" for 127.0.0.1 at 2011-11-04 00:00:00 -0400
3393
+ Processing by Medivo::LabsController#make_appointment as HTML
3394
+ Parameters: {"lab_code"=>"20060", "time"=>"2011-11-01 08:30:00 UTC", "user"=>{"first_name"=>"dude", "last_name"=>nil, "date_of_birth"=>"12/28/1980", "email_address"=>"dudeman@dude.com", "phone_number"=>"4155551212"}}
3395
+ Completed 200 OK in 0ms (Views: 0.0ms)
3396
+
3397
+
3398
+ Started GET "/medivo/labs?zip_code=90210" for 127.0.0.1 at 2011-11-16 11:16:23 -0500
3399
+ Processing by Medivo::LabsController#index as HTML
3400
+ Parameters: {"zip_code"=>"90210"}
3401
+ Completed 200 OK in 232ms (Views: 1.8ms)
3402
+
3403
+
3404
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-16 11:16:25 -0500
3405
+ Processing by LabsController#lab_search as HTML
3406
+ Parameters: {"zip_code"=>"90210"}
3407
+ Completed 200 OK in 309ms (Views: 100.8ms)
3408
+
3409
+
3410
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-16 11:16:26 -0500
3411
+ Served asset /application.css - 200 OK (39ms)
3412
+
3413
+
3414
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-16 11:16:26 -0500
3415
+ Served asset /application.js - 200 OK (19ms)
3416
+
3417
+
3418
+ Started GET "/assets/medivo/ajax_waiting.gif" for 127.0.0.1 at 2011-11-16 11:16:26 -0500
3419
+ Served asset /medivo/ajax_waiting.gif - 200 OK (1ms)
3420
+
3421
+
3422
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-16 11:16:26 -0500
3423
+ Served asset /medivo/markerA.png - 200 OK (1ms)
3424
+
3425
+
3426
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-16 11:16:26 -0500
3427
+ Served asset /medivo/markerB.png - 200 OK (1ms)
3428
+
3429
+
3430
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-16 11:16:26 -0500
3431
+ Served asset /medivo/arrow.png - 200 OK (2ms)
3432
+
3433
+
3434
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 11:16:27 -0500
3435
+ Processing by Medivo::LabsController#find_appointment as HTML
3436
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3437
+ Completed 500 Internal Server Error in 1ms (Views: 0.3ms)
3438
+
3439
+
3440
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 11:16:27 -0500
3441
+ Processing by Medivo::LabsController#find_appointment as HTML
3442
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3443
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms)
3444
+
3445
+
3446
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 11:16:27 -0500
3447
+ Processing by Medivo::LabsController#find_appointment as HTML
3448
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3449
+ Completed 500 Internal Server Error in 1ms (Views: 0.2ms)
3450
+
3451
+
3452
+ Started POST "/medivo/labs/make_appointment" for 127.0.0.1 at 2011-11-16 11:16:27 -0500
3453
+ Processing by Medivo::LabsController#make_appointment as HTML
3454
+ Parameters: {"lab_code"=>"20060", "time"=>"2011-11-01 08:30:00 UTC", "user"=>{"first_name"=>"dude", "last_name"=>nil, "date_of_birth"=>"12/28/1980", "email_address"=>"dudeman@dude.com", "phone_number"=>"4155551212"}}
3455
+ Completed 200 OK in 2ms (Views: 0.2ms)
3456
+
3457
+
3458
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:55:21 -0500
3459
+ Processing by Medivo::LabsController#find_appointment as HTML
3460
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3461
+ Completed 500 Internal Server Error in 2ms (Views: 1.1ms)
3462
+
3463
+
3464
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:56:57 -0500
3465
+ Processing by Medivo::LabsController#find_appointment as HTML
3466
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3467
+ Completed 200 OK in 3ms (Views: 1.6ms)
3468
+
3469
+
3470
+ Started GET "/medivo/labs?zip_code=90210" for 127.0.0.1 at 2011-11-16 13:56:59 -0500
3471
+ Processing by Medivo::LabsController#index as HTML
3472
+ Parameters: {"zip_code"=>"90210"}
3473
+ Completed 200 OK in 350ms (Views: 1.7ms)
3474
+
3475
+
3476
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-16 13:57:02 -0500
3477
+ Processing by LabsController#lab_search as HTML
3478
+ Parameters: {"zip_code"=>"90210"}
3479
+ Completed 200 OK in 299ms (Views: 99.1ms)
3480
+
3481
+
3482
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-16 13:57:02 -0500
3483
+ Served asset /application.css - 200 OK (5ms)
3484
+
3485
+
3486
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-16 13:57:02 -0500
3487
+ Served asset /application.js - 200 OK (24ms)
3488
+
3489
+
3490
+ Started GET "/assets/medivo/ajax_waiting.gif" for 127.0.0.1 at 2011-11-16 13:57:02 -0500
3491
+ Served asset /medivo/ajax_waiting.gif - 200 OK (2ms)
3492
+
3493
+
3494
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3495
+ Served asset /medivo/markerA.png - 200 OK (2ms)
3496
+
3497
+
3498
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3499
+ Served asset /medivo/markerB.png - 200 OK (1ms)
3500
+
3501
+
3502
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3503
+ Served asset /medivo/arrow.png - 200 OK (2ms)
3504
+
3505
+
3506
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3507
+ Processing by Medivo::LabsController#find_appointment as HTML
3508
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3509
+ Completed 200 OK in 1ms (Views: 0.3ms)
3510
+
3511
+
3512
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3513
+ Processing by Medivo::LabsController#find_appointment as HTML
3514
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3515
+ Completed 200 OK in 1ms (Views: 0.2ms)
3516
+
3517
+
3518
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3519
+ Processing by Medivo::LabsController#find_appointment as HTML
3520
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3521
+ Completed 404 Not Found in 1ms (Views: 0.3ms)
3522
+
3523
+
3524
+ Started POST "/medivo/labs/make_appointment" for 127.0.0.1 at 2011-11-16 13:57:03 -0500
3525
+ Processing by Medivo::LabsController#make_appointment as HTML
3526
+ Parameters: {"lab_code"=>"20060", "time"=>"2011-11-01 08:30:00 UTC", "user"=>{"first_name"=>"dude", "last_name"=>nil, "date_of_birth"=>"12/28/1980", "email_address"=>"dudeman@dude.com", "phone_number"=>"4155551212"}}
3527
+ Completed 200 OK in 2ms (Views: 0.2ms)
3528
+ Processing by OrdersController#download_requisition as HTML
3529
+ Rendered text template (0.0ms)
3530
+ Sent data unitedhealthcare_requisition.pdf (77.7ms)
3531
+ Completed 200 OK in 931ms (Views: 76.8ms)
3532
+ Processing by OrdersController#download_result as HTML
3533
+ Sent data unitedhealthcare_result.pdf (2.3ms)
3534
+ Completed 200 OK in 695ms (Views: 1.3ms)
3535
+
3536
+
3537
+ Started GET "/medivo/labs?zip_code=90210" for 127.0.0.1 at 2011-11-16 13:57:19 -0500
3538
+ Processing by Medivo::LabsController#index as HTML
3539
+ Parameters: {"zip_code"=>"90210"}
3540
+ Completed 200 OK in 223ms (Views: 1.9ms)
3541
+
3542
+
3543
+ Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-16 13:57:21 -0500
3544
+ Processing by LabsController#lab_search as HTML
3545
+ Parameters: {"zip_code"=>"90210"}
3546
+ Completed 200 OK in 234ms (Views: 40.4ms)
3547
+
3548
+
3549
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-16 13:57:21 -0500
3550
+ Served asset /application.css - 200 OK (5ms)
3551
+
3552
+
3553
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-16 13:57:21 -0500
3554
+ Served asset /application.js - 200 OK (23ms)
3555
+
3556
+
3557
+ Started GET "/assets/medivo/ajax_waiting.gif" for 127.0.0.1 at 2011-11-16 13:57:21 -0500
3558
+ Served asset /medivo/ajax_waiting.gif - 200 OK (2ms)
3559
+
3560
+
3561
+ Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3562
+ Served asset /medivo/markerA.png - 200 OK (3ms)
3563
+
3564
+
3565
+ Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3566
+ Served asset /medivo/markerB.png - 200 OK (2ms)
3567
+
3568
+
3569
+ Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3570
+ Served asset /medivo/arrow.png - 200 OK (3ms)
3571
+
3572
+
3573
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3574
+ Processing by Medivo::LabsController#find_appointment as HTML
3575
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3576
+ Completed 200 OK in 1ms (Views: 0.3ms)
3577
+
3578
+
3579
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3580
+ Processing by Medivo::LabsController#find_appointment as HTML
3581
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3582
+ Completed 200 OK in 1ms (Views: 0.2ms)
3583
+
3584
+
3585
+ Started GET "/medivo/labs/find_appointment?date=11%2F01%2F2011&lab_code=20060" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3586
+ Processing by Medivo::LabsController#find_appointment as HTML
3587
+ Parameters: {"date"=>"11/01/2011", "lab_code"=>"20060"}
3588
+ Completed 404 Not Found in 1ms (Views: 0.3ms)
3589
+
3590
+
3591
+ Started POST "/medivo/labs/make_appointment" for 127.0.0.1 at 2011-11-16 13:57:22 -0500
3592
+ Processing by Medivo::LabsController#make_appointment as HTML
3593
+ Parameters: {"lab_code"=>"20060", "time"=>"2011-11-01 08:30:00 UTC", "user"=>{"first_name"=>"dude", "last_name"=>nil, "date_of_birth"=>"12/28/1980", "email_address"=>"dudeman@dude.com", "phone_number"=>"4155551212"}}
3594
+ Completed 200 OK in 2ms (Views: 0.2ms)
@@ -1 +1 @@
1
- 14208
1
+ 14515
@@ -12,14 +12,14 @@ describe Medivo::Appointment do
12
12
 
13
13
  let(:body) { {'times'=> @all_times} }
14
14
 
15
- def returned_times(date, am_pm, freeze_date = date)
15
+ def returned_times(date_str, am_pm, freeze_date = date_str)
16
16
  freeze_date = Date.strptime(freeze_date, "%m/%d/%Y")
17
- date = Date.strptime(date, "%m/%d/%Y")
18
17
  Timecop.freeze(freeze_date)
19
- stub_appointment_request(lab_code, date, am_pm, body)
20
- value = Medivo::Appointment.find(lab_code, date, am_pm)
18
+ stub_appointment_request(lab_code, date_str, am_pm, body)
19
+ date = Date.strptime(date_str, "%m/%d/%Y")
20
+ times = Medivo::Appointment.find(lab_code, date, am_pm)
21
21
  Timecop.return
22
- value
22
+ times
23
23
  end
24
24
 
25
25
  it "filters out past date times" do
@@ -29,12 +29,13 @@ describe 'LabController' do
29
29
 
30
30
  before do
31
31
  @lab_code = "20060"
32
- @date = "11/01/2011"
32
+ @date_str = "11/01/2011"
33
+ @date = Date.strptime(@date_str, "%m/%d/%Y")
33
34
  @am_pm = nil
34
35
  end
35
36
 
36
37
  let(:path) {
37
- Medivo::Engine.routes.url_helpers.find_appointment_labs_path lab_code: @lab_code, date: @date
38
+ Medivo::Engine.routes.url_helpers.find_appointment_labs_path lab_code: @lab_code, date: @date_str
38
39
  }
39
40
 
40
41
  it "valid request returns appointment times as json" do
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.19
4
+ version: 0.2.20
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: &2165120660 !ruby/object:Gem::Requirement
17
+ requirement: &2168896820 !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: *2165120660
25
+ version_requirements: *2168896820
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &2165116880 !ruby/object:Gem::Requirement
28
+ requirement: &2168896380 !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: *2165116880
36
+ version_requirements: *2168896380
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2165116420 !ruby/object:Gem::Requirement
39
+ requirement: &2168895920 !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: *2165116420
47
+ version_requirements: *2168895920
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml-rails
50
- requirement: &2165115960 !ruby/object:Gem::Requirement
50
+ requirement: &2168895500 !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: *2165115960
58
+ version_requirements: *2168895500
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: geocoder
61
- requirement: &2165115540 !ruby/object:Gem::Requirement
61
+ requirement: &2168895080 !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: *2165115540
69
+ version_requirements: *2168895080
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rest-client
72
- requirement: &2165115100 !ruby/object:Gem::Requirement
72
+ requirement: &2168894660 !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: *2165115100
80
+ version_requirements: *2168894660
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: pdfkit
83
- requirement: &2165114680 !ruby/object:Gem::Requirement
83
+ requirement: &2168894240 !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: *2165114680
91
+ version_requirements: *2168894240
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: prawn
94
- requirement: &2165114260 !ruby/object:Gem::Requirement
94
+ requirement: &2168880380 !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: *2165114260
102
+ version_requirements: *2168880380
103
103
  description: Use the medivo platform to find lab locations, make labcorp appointments,
104
104
  place lab orders
105
105
  email:
@@ -312,7 +312,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
312
312
  version: '0'
313
313
  segments:
314
314
  - 0
315
- hash: 1009107623208251976
315
+ hash: 3011274679794770266
316
316
  required_rubygems_version: !ruby/object:Gem::Requirement
317
317
  none: false
318
318
  requirements:
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  version: '0'
322
322
  segments:
323
323
  - 0
324
- hash: 1009107623208251976
324
+ hash: 3011274679794770266
325
325
  requirements: []
326
326
  rubyforge_project:
327
327
  rubygems_version: 1.6.2