Skip to content

Commit 0be7918

Browse files
committed
Fix lint errors
- Ran the command: bundle exec rubocop -A
1 parent 85bfb96 commit 0be7918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/functional/places_controller_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
get(:show, params: { id: @service.slug }, format: :json)
3030
assert_response(:success)
3131
json_data = JSON.parse(response.body)
32-
place = json_data["places"].find { |p| (p["source_address"] == "Aviation House") }
32+
place = json_data["places"].find { |p| p["source_address"] == "Aviation House" }
3333
expect(place["postcode"]).to(eq("WC2B 6SE"))
3434
location_hash = { "latitude" => 51.516960431, "longitude" => -0.120586400134 }
3535
expect(place["location"]).to(eq(location_hash))
@@ -41,7 +41,7 @@
4141
get(:show, params: { id: @service.slug }, format: :json)
4242
assert_response(:success)
4343
json_data = JSON.parse(response.body)
44-
place = json_data["places"].find { |p| (p["source_address"] == "Nowhere") }
44+
place = json_data["places"].find { |p| p["source_address"] == "Nowhere" }
4545
expect(place["location"]).to(be_nil)
4646
end
4747
end
@@ -56,7 +56,7 @@
5656
kml_data = Hash.from_xml(response.body)
5757
expect(kml_data["kml"]["Document"]["Placemark"].size).to(eq(4))
5858
sorted_places = kml_data["kml"]["Document"]["Placemark"].sort do |a, b|
59-
(a["address"] <=> b["address"])
59+
a["address"] <=> b["address"]
6060
end
6161
location_points = [nil, RGeo::Geographic.spherical_factory.point(-3.174706, 55.95439), RGeo::Geographic.spherical_factory.point(-0.141587067110009, 51.501009611553926), RGeo::Geographic.spherical_factory.point(-0.120586400134, 51.516960431)]
6262
sorted_places.zip(location_points) do |placemark, point|

0 commit comments

Comments
 (0)