mas-rad_core 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ FactoryGirl.define do
5
5
  reference_number
6
6
  name 'Ben Lovell'
7
7
  postcode 'RG1 1NN'
8
- travel_distance '50'
8
+ travel_distance '650'
9
9
  latitude { Faker::Address.latitude.to_f.round(6) }
10
10
  longitude { Faker::Address.longitude.to_f.round(6) }
11
11
  confirmed_disclaimer true
@@ -20,5 +20,10 @@ RSpec.describe AdviserSerializer do
20
20
  expect(subject[:location][:lat]).to eql(adviser.latitude)
21
21
  expect(subject[:location][:lon]).to eql(adviser.longitude)
22
22
  end
23
+
24
+ it 'exposes `range_location`' do
25
+ expect(subject[:range_location][:coordinates]).to eq([adviser.longitude, adviser.latitude])
26
+ expect(subject[:range_location][:radius]).to eq('650miles')
27
+ end
23
28
  end
24
29
  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.24
4
+ version: 0.0.25
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-24 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails