mas-rad_core 0.0.84 → 0.0.85
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.
- checksums.yaml +4 -4
- data/lib/mas/firm_result.rb +6 -0
- data/lib/mas/rad_core/version.rb +1 -1
- data/spec/dummy/log/test.log +73728 -0
- data/spec/lib/mas/firm_result_spec.rb +26 -0
- metadata +2 -2
@@ -177,5 +177,31 @@ RSpec.describe FirmResult do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
end
|
180
|
+
|
181
|
+
describe 'includes_advice_type?' do
|
182
|
+
let(:data) { { 'sort' => [1], '_source' => { 'advisers' => [], key => value } } }
|
183
|
+
|
184
|
+
FirmResult::TYPES_OF_ADVICE_FIELDS.each do |advice_type|
|
185
|
+
describe "attribute [#{advice_type}]" do
|
186
|
+
let(:key) { advice_type.to_s }
|
187
|
+
|
188
|
+
context 'has a value of 0 (false)' do
|
189
|
+
let(:value) { 0 }
|
190
|
+
|
191
|
+
it 'returns false' do
|
192
|
+
expect(subject.includes_advice_type?(key)).to eq(false)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
context 'has a value of 100 (true)' do
|
197
|
+
let(:value) { 100 }
|
198
|
+
|
199
|
+
it 'returns true' do
|
200
|
+
expect(subject.includes_advice_type?(key)).to eq(true)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
180
206
|
end
|
181
207
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mas-rad_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Lovell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|