allscripts_unity_client 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/lib/allscripts_unity_client/client.rb +13 -1
- data/lib/allscripts_unity_client/version.rb +1 -1
- data/spec/spec_helper.rb +52 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f780daefb7aced7b5f887ff5cbe0338d3fbbc15
|
4
|
+
data.tar.gz: 3f1ce4fe75714faa52fbfa768b52185dbbd176fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0d36d96dae75e62fe1e4505af37f6255cd3cece14a91c3eea9209c200c95839548c297dc936ef0b2b2936261ab7a5670c696aef05bb7bcad5082627328d6557
|
7
|
+
data.tar.gz: 28729d3cef4439338ad5a83b9887416de96f50eaaa92d2d8da24d3332222a3fd9b103457726eb373a643055777db243d32fa765cb4ff742e3aa969c3f0a7698a
|
data/.rspec
ADDED
@@ -198,7 +198,19 @@ module AllscriptsUnityClient
|
|
198
198
|
patientid: patientid,
|
199
199
|
parameter1: transaction_id
|
200
200
|
}
|
201
|
-
magic(magic_parameters)
|
201
|
+
result = magic(magic_parameters)
|
202
|
+
|
203
|
+
if transaction_id == 0 || transaction_id == '0'
|
204
|
+
# When transaction_id is 0 all medications should be
|
205
|
+
# returned and the result should always be an array.
|
206
|
+
if !result.is_a?(Array) && !result.empty?
|
207
|
+
result = [ result ]
|
208
|
+
elsif result.empty?
|
209
|
+
result = []
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
result
|
202
214
|
end
|
203
215
|
|
204
216
|
def get_medication_info(userid, ddid, patientid = nil)
|
data/spec/spec_helper.rb
CHANGED
@@ -36,9 +36,60 @@ require 'json'
|
|
36
36
|
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
|
37
37
|
|
38
38
|
RSpec.configure do |config|
|
39
|
+
# These two settings work together to allow you to limit a spec run
|
40
|
+
# to individual examples or groups you care about by tagging them with
|
41
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
42
|
+
# get run.
|
43
|
+
config.filter_run :focus
|
44
|
+
config.run_all_when_everything_filtered = true
|
45
|
+
|
46
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
47
|
+
# file, and it's useful to allow more verbose output when running an
|
48
|
+
# individual spec file.
|
49
|
+
if config.files_to_run.one?
|
50
|
+
# Use the documentation formatter for detailed output,
|
51
|
+
# unless a formatter has already been configured
|
52
|
+
# (e.g. via a command-line flag).
|
53
|
+
config.default_formatter = 'doc'
|
54
|
+
end
|
55
|
+
|
56
|
+
# Print the 10 slowest examples and example groups at the
|
57
|
+
# end of the spec run, to help surface which specs are running
|
58
|
+
# particularly slow.
|
59
|
+
config.profile_examples = 10
|
60
|
+
|
39
61
|
# Run specs in random order to surface order dependencies. If you find an
|
40
62
|
# order dependency and want to debug it, you can fix the order by providing
|
41
63
|
# the seed, which is printed after each run.
|
42
64
|
# --seed 1234
|
43
|
-
config.order =
|
65
|
+
config.order = :random
|
66
|
+
|
67
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
68
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
69
|
+
# test failures related to randomization by passing the same `--seed` value
|
70
|
+
# as the one that triggered the failure.
|
71
|
+
Kernel.srand config.seed
|
72
|
+
|
73
|
+
# rspec-expectations config goes here. You can use an alternate
|
74
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
75
|
+
# assertions if you prefer.
|
76
|
+
config.expect_with :rspec do |expectations|
|
77
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
78
|
+
# For more details, see:
|
79
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
80
|
+
expectations.syntax = :expect
|
81
|
+
end
|
82
|
+
|
83
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
84
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
85
|
+
config.mock_with :rspec do |mocks|
|
86
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
87
|
+
# For more details, see:
|
88
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
89
|
+
mocks.syntax = :expect
|
90
|
+
|
91
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
92
|
+
# a real object. This is generally recommended.
|
93
|
+
# mocks.verify_partial_doubles = true
|
94
|
+
end
|
44
95
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allscripts_unity_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ash Gupta
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -251,6 +251,7 @@ extensions: []
|
|
251
251
|
extra_rdoc_files: []
|
252
252
|
files:
|
253
253
|
- ".gitignore"
|
254
|
+
- ".rspec"
|
254
255
|
- ".travis.yml"
|
255
256
|
- Gemfile
|
256
257
|
- LICENSE
|