mas-rad_core 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,12 +33,20 @@ RSpec.describe FirmResult do
33
33
  expect(subject.name).to eq('Financial Advice 1 Ltd.')
34
34
  end
35
35
 
36
+ it 'maps the `total_advisers`' do
37
+ expect(subject.total_advisers).to eq(1)
38
+ end
39
+
36
40
  it 'maps the `closest_adviser`' do
37
41
  expect(subject.closest_adviser).to eq(0.7794549719530739)
38
42
  end
39
43
 
40
- it 'maps the `total_advisers`' do
41
- expect(subject.total_advisers).to eq(1)
44
+ context 'when sorted by types of advice first' do
45
+ before { data['sort'].unshift(123) }
46
+
47
+ it 'maps the `closest_adviser`' do
48
+ expect(subject.closest_adviser).to eq(0.7794549719530739)
49
+ end
42
50
  end
43
51
  end
44
52
  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.16
4
+ version: 0.0.17
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-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails