finapps 5.0.25 → 5.0.26
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/consumers.rb +3 -1
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/consumers_spec.rb +24 -1
- 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: 8b136353c2e5d3fbe91062737608381a908baa5c6138c762baaabd89b53ca634
|
4
|
+
data.tar.gz: 54104334c9a5912e805b1cfcd9846e2fd33287156aa495e79b628b63a25b20d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7fb1d1a3392a254bbb42ccec77b5d649274e05f8382933b1b67cca4ec004e0719f0c14a5900a9b76a1097bc94243718c5f9baa6ea81479303d492447c23e829
|
7
|
+
data.tar.gz: 4b39f05d96dfb90108a75efa12866decf7830f74e1303fa80562389485fc6448bf86be9826e60da9f1e1ee7361a4254f85d7f246764e5c115116f606fa1e2405
|
data/lib/finapps/version.rb
CHANGED
data/spec/rest/consumers_spec.rb
CHANGED
@@ -62,7 +62,30 @@ RSpec.describe FinApps::REST::Consumers,
|
|
62
62
|
it { expect { list }.to raise_error(FinAppsCore::InvalidArgumentsError) }
|
63
63
|
end
|
64
64
|
|
65
|
-
context 'when including valid params' do
|
65
|
+
context 'when including valid params without searchTerm' do
|
66
|
+
let(:params) do
|
67
|
+
{
|
68
|
+
page: 3,
|
69
|
+
requested: 19
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
it { expect { list }.to_not raise_error }
|
74
|
+
it('returns an array') { expect(list).to be_a(Array) }
|
75
|
+
it('performs a get and returns the response') do
|
76
|
+
expect(results).to have_key(:records)
|
77
|
+
end
|
78
|
+
it('returns no error messages') do
|
79
|
+
expect(error_messages).to be_empty
|
80
|
+
end
|
81
|
+
it 'builds query and sends proper request' do
|
82
|
+
list
|
83
|
+
url = "#{versioned_api_path}/consumers?page=3&requested=19"
|
84
|
+
expect(WebMock).to have_requested(:get, url)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
context 'when including valid params with searchTerm' do
|
66
89
|
let(:params) do
|
67
90
|
{
|
68
91
|
page: 2,
|