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.
- checksums.yaml +4 -4
- data/app/serializers/adviser_serializer.rb +9 -1
- data/lib/mas/rad_core/version.rb +1 -1
- data/spec/dummy/log/test.log +39664 -0
- data/spec/factories/adviser.rb +1 -1
- data/spec/serializers/adviser_serializer_spec.rb +5 -0
- metadata +2 -2
data/spec/factories/adviser.rb
CHANGED
@@ -5,7 +5,7 @@ FactoryGirl.define do
|
|
5
5
|
reference_number
|
6
6
|
name 'Ben Lovell'
|
7
7
|
postcode 'RG1 1NN'
|
8
|
-
travel_distance '
|
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.
|
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-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|