finapps 4.0.11 → 4.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/finapps/rest/client.rb +1 -2
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/client_spec.rb +12 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c7e01a0cc069279baa7d0c6c6ad4de1de8e19a77bac754f0d091a9b18721574
|
4
|
+
data.tar.gz: b9b5441629770d07bd85c65360c8a87e8b41df3b13b1a9ca71fce4cf7dd484d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb60857be1798390f6b5b76c68fdb9d7cbc4b9dbdf273080794a1abe698c99bf2e6aa9b42f492ff2ebe6e911e28db3e8063574f76fe7d062bde97c1d759aa728
|
7
|
+
data.tar.gz: 928d032593ed3b44e5bacacc5a925d4142dabf3a8bfcc964d8f25f9dc28a14ff7a7f4e7ae925952cbab53279443fa18cc8a616ff789a323982804162d2da2803
|
data/lib/finapps/rest/client.rb
CHANGED
@@ -74,8 +74,7 @@ module FinApps
|
|
74
74
|
def camelize(term)
|
75
75
|
string = term.to_s
|
76
76
|
string = string.sub(/^[a-z\d]*/) { $&.capitalize }
|
77
|
-
string.gsub
|
78
|
-
string
|
77
|
+
string.gsub(%r{(?:_|(/))([a-z\d]*)}) { Regexp.last_match(2).capitalize.to_s }
|
79
78
|
end
|
80
79
|
end
|
81
80
|
end
|
data/lib/finapps/version.rb
CHANGED
data/spec/rest/client_spec.rb
CHANGED
@@ -11,8 +11,12 @@ RSpec.describe FinApps::REST::Client do
|
|
11
11
|
subject { FinApps::REST::Client.new(:company_token) }
|
12
12
|
|
13
13
|
FinApps::REST::Client::RESOURCES.each do |method|
|
14
|
-
it
|
15
|
-
|
14
|
+
it("responds to #{method}") { expect(subject).to respond_to(method) }
|
15
|
+
|
16
|
+
it "memoizes the result of #{method}" do
|
17
|
+
first = subject.send(method)
|
18
|
+
second = subject.send(method)
|
19
|
+
expect(first.object_id).to eq(second.object_id)
|
16
20
|
end
|
17
21
|
end
|
18
22
|
|
@@ -38,6 +42,12 @@ RSpec.describe FinApps::REST::Client do
|
|
38
42
|
end
|
39
43
|
end
|
40
44
|
|
45
|
+
describe '#consumer_institution_refresh' do
|
46
|
+
it do
|
47
|
+
expect(subject.consumer_institution_refresh).to be_an_instance_of FinApps::REST::ConsumerInstitutionRefresh
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
41
51
|
describe '#sessions' do
|
42
52
|
it { expect(subject.sessions).to be_an_instance_of(FinApps::REST::Sessions) }
|
43
53
|
end
|
@@ -143,13 +153,5 @@ RSpec.describe FinApps::REST::Client do
|
|
143
153
|
describe '#tenant_app_settings' do
|
144
154
|
it { expect(subject.tenant_app_settings).to be_an_instance_of(FinApps::REST::TenantAppSettings) }
|
145
155
|
end
|
146
|
-
|
147
|
-
FinApps::REST::Client::RESOURCES.each do |method|
|
148
|
-
it "memoizes the result of #{method}" do
|
149
|
-
first = subject.send(method)
|
150
|
-
second = subject.send(method)
|
151
|
-
expect(first.object_id).to eq(second.object_id)
|
152
|
-
end
|
153
|
-
end
|
154
156
|
end
|
155
157
|
end
|