Skip to content

Commit d2de22b

Browse files
committed
fixup
1 parent cc555dd commit d2de22b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spec/factories/schools.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070
end
7171
end
7272

73-
after(:build) do |org|
74-
if org.uk_geopoint.nil? && org.geopoint.present?
75-
org.uk_geopoint = if org.geopoint.is_a?(String)
76-
GeoFactories.convert_wgs84_to_sr27700(GeoFactories::FACTORY_4326.parse_wkt(org.geopoint))
73+
after(:build) do |org, evaluator|
74+
if org.uk_geopoint.nil? && evaluator.geopoint.present?
75+
org.uk_geopoint = if evaluator.geopoint.is_a?(String)
76+
GeoFactories.convert_wgs84_to_sr27700(GeoFactories::FACTORY_4326.parse_wkt(evaluator.geopoint))
7777
else
7878
GeoFactories.convert_wgs84_to_sr27700(org.geopoint)
7979
end

0 commit comments

Comments
 (0)