medivo 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/medivo/version.rb +1 -1
- data/spec/dummy/log/test.log +32 -0
- data/spec/lib/pdf_group_spec.rb +3 -3
- data/spec/models/orders_spec.rb +2 -2
- data/spec/support/helper.rb +3 -3
- metadata +19 -19
data/lib/medivo/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -215,3 +215,35 @@ Served asset /medivo/markerB.png - 200 OK (3ms)
|
|
215
215
|
|
216
216
|
Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-07 08:16:45 -0500
|
217
217
|
Served asset /medivo/arrow.png - 200 OK (2ms)
|
218
|
+
|
219
|
+
|
220
|
+
Started GET "/medivo/labs/lab_data?zip_code=90210" for 127.0.0.1 at 2011-11-07 16:38:03 -0500
|
221
|
+
Processing by Medivo::LabsController#lab_data as HTML
|
222
|
+
Parameters: {"zip_code"=>"90210"}
|
223
|
+
Completed 200 OK in 362ms (Views: 1.1ms)
|
224
|
+
|
225
|
+
|
226
|
+
Started GET "/labs/lab_search?zip_code=90210" for 127.0.0.1 at 2011-11-07 16:38:05 -0500
|
227
|
+
Processing by LabsController#lab_search as HTML
|
228
|
+
Parameters: {"zip_code"=>"90210"}
|
229
|
+
Completed 200 OK in 273ms (Views: 92.9ms)
|
230
|
+
|
231
|
+
|
232
|
+
Started GET "/assets/application.css" for 127.0.0.1 at 2011-11-07 16:38:06 -0500
|
233
|
+
Served asset /application.css - 200 OK (3ms)
|
234
|
+
|
235
|
+
|
236
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2011-11-07 16:38:06 -0500
|
237
|
+
Served asset /application.js - 200 OK (21ms)
|
238
|
+
|
239
|
+
|
240
|
+
Started GET "/assets/medivo/markerA.png" for 127.0.0.1 at 2011-11-07 16:38:06 -0500
|
241
|
+
Served asset /medivo/markerA.png - 200 OK (1ms)
|
242
|
+
|
243
|
+
|
244
|
+
Started GET "/assets/medivo/markerB.png" for 127.0.0.1 at 2011-11-07 16:38:06 -0500
|
245
|
+
Served asset /medivo/markerB.png - 200 OK (2ms)
|
246
|
+
|
247
|
+
|
248
|
+
Started GET "/assets/medivo/arrow.png" for 127.0.0.1 at 2011-11-07 16:38:06 -0500
|
249
|
+
Served asset /medivo/arrow.png - 200 OK (2ms)
|
data/spec/lib/pdf_group_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe Medivo::PdfGroup do
|
|
24
24
|
|
25
25
|
it "#lab_requisition" do
|
26
26
|
requisition_id = 170420
|
27
|
-
stub_order_requisition(requisition_id, "lc_order_with_requisition.xml")
|
27
|
+
stub_order_requisition(requisition_id, medivo_fixture_path("lc_order_with_requisition.xml"))
|
28
28
|
|
29
29
|
pdf_group = Medivo::PdfGroup.create do
|
30
30
|
lab_requisition(requisition_id)
|
@@ -36,7 +36,7 @@ describe Medivo::PdfGroup do
|
|
36
36
|
|
37
37
|
it "#lab_result" do
|
38
38
|
requisition_id = 170420
|
39
|
-
stub_order_result(requisition_id, "lc_order_with_positive_results.xml")
|
39
|
+
stub_order_result(requisition_id, medivo_fixture_path("lc_order_with_positive_results.xml"))
|
40
40
|
|
41
41
|
pdf_group = Medivo::PdfGroup.create do
|
42
42
|
lab_result(requisition_id)
|
@@ -61,7 +61,7 @@ describe Medivo::PdfGroup do
|
|
61
61
|
cover_letter_path = medivo_fixture_path "negative_results.pdf"
|
62
62
|
|
63
63
|
requisition_id = 170420
|
64
|
-
stub_order_requisition(requisition_id, "lc_order_with_requisition.xml")
|
64
|
+
stub_order_requisition(requisition_id, medivo_fixture_path("lc_order_with_requisition.xml"))
|
65
65
|
|
66
66
|
faq_path = medivo_fixture_path "result_faq.pdf"
|
67
67
|
|
data/spec/models/orders_spec.rb
CHANGED
@@ -121,7 +121,7 @@ describe Medivo::Order do
|
|
121
121
|
before(:each) do
|
122
122
|
@requisition_id = 170420
|
123
123
|
order = Medivo::Order.new(:requisition_number=> @requisition_id)
|
124
|
-
stub_order_requisition(@requisition_id, "lc_order_with_requisition.xml")
|
124
|
+
stub_order_requisition(@requisition_id, medivo_fixture_path("lc_order_with_requisition.xml"))
|
125
125
|
end
|
126
126
|
|
127
127
|
let(:order) { Medivo::Order.find_with_requisition(@requisition_id) }
|
@@ -153,7 +153,7 @@ describe Medivo::Order do
|
|
153
153
|
before(:each) do
|
154
154
|
@requisition_id = 170853
|
155
155
|
order = Medivo::Order.new(:requisition_number=>@requisition_id)
|
156
|
-
stub_order_result(@requisition_id, "lc_order_with_positive_results.xml")
|
156
|
+
stub_order_result(@requisition_id, medivo_fixture_path("lc_order_with_positive_results.xml"))
|
157
157
|
end
|
158
158
|
|
159
159
|
let(:order) { Medivo::Order.find_with_results(@requisition_id) }
|
data/spec/support/helper.rb
CHANGED
@@ -41,7 +41,7 @@ module Medivo::Spec
|
|
41
41
|
# requisition that includes requisition pdf
|
42
42
|
def stub_order_requisition(requisition_id, file_path)
|
43
43
|
stub_request(:get, "test:test@test.medivo.com/customers/#{requisition_id}.xml?include=requisition").
|
44
|
-
to_return(:body => File.read(
|
44
|
+
to_return(:body => File.read(file_path))
|
45
45
|
end
|
46
46
|
|
47
47
|
##
|
@@ -50,6 +50,6 @@ module Medivo::Spec
|
|
50
50
|
# result info that includes result pdf
|
51
51
|
def stub_order_result(requisition_id, file_path)
|
52
52
|
stub_request(:get, "test:test@test.medivo.com/customers/#{requisition_id}.xml?include=reconciled_results").
|
53
|
-
to_return(:body => File.read(
|
53
|
+
to_return(:body => File.read(file_path))
|
54
54
|
end
|
55
|
-
end
|
55
|
+
end
|
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.1.
|
4
|
+
version: 0.1.16
|
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: &
|
17
|
+
requirement: &2156001400 !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: *
|
25
|
+
version_requirements: *2156001400
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: jquery-rails
|
28
|
-
requirement: &
|
28
|
+
requirement: &2155999160 !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: *
|
36
|
+
version_requirements: *2155999160
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: coffee-script
|
39
|
-
requirement: &
|
39
|
+
requirement: &2155996020 !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: *
|
47
|
+
version_requirements: *2155996020
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: haml-rails
|
50
|
-
requirement: &
|
50
|
+
requirement: &2155995020 !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: *
|
58
|
+
version_requirements: *2155995020
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: geocoder
|
61
|
-
requirement: &
|
61
|
+
requirement: &2155994340 !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: *
|
69
|
+
version_requirements: *2155994340
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rest-client
|
72
|
-
requirement: &
|
72
|
+
requirement: &2155991380 !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: *
|
80
|
+
version_requirements: *2155991380
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: pdfkit
|
83
|
-
requirement: &
|
83
|
+
requirement: &2155988980 !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: *
|
91
|
+
version_requirements: *2155988980
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: prawn
|
94
|
-
requirement: &
|
94
|
+
requirement: &2155928300 !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: *
|
102
|
+
version_requirements: *2155928300
|
103
103
|
description: Use the medivo platform to find lab locations, make labcorp appointments,
|
104
104
|
place lab orders
|
105
105
|
email:
|
@@ -293,7 +293,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
293
|
version: '0'
|
294
294
|
segments:
|
295
295
|
- 0
|
296
|
-
hash:
|
296
|
+
hash: -1392970029626568034
|
297
297
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
298
|
none: false
|
299
299
|
requirements:
|
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
302
|
version: '0'
|
303
303
|
segments:
|
304
304
|
- 0
|
305
|
-
hash:
|
305
|
+
hash: -1392970029626568034
|
306
306
|
requirements: []
|
307
307
|
rubyforge_project:
|
308
308
|
rubygems_version: 1.6.2
|