spec/geo_json_spec.rb in h3-3.6.1 vs spec/geo_json_spec.rb in h3-3.6.2
- old
+ new
@@ -58,9 +58,17 @@
it "raises an error" do
expect { geo_json_to_coordinates }.to raise_error(ArgumentError)
end
end
+
+ context "when given JSON with the wrong structure" do
+ let(:input) { { blah: "blah" }.to_json }
+
+ it "raises an error" do
+ expect { geo_json_to_coordinates }.to raise_error(ArgumentError)
+ end
+ end
end
describe ".coordinates_to_geo_json" do
let(:input) do
[