Resolves issue: https://github.com/CrisisCleanup/crisiscleanup/issues/354
I couldn't quite figure out how to make a test for this; never touched rspec/capybara before. Seems like it would have to use the Gmaps api to calculate what the viewport 'should' be, and then somehow query the actual map, pull its viewport out and see if they match. If anyone has a suggestion for how to do that I'm happy to give it a try.
Resolves issue: https://github.com/CrisisCleanup/crisiscleanup/issues/354 I couldn't quite figure out how to make a test for this; never touched rspec/capybara before. Seems like it would have to use the Gmaps api to calculate what the viewport 'should' be, and then somehow query the actual map, pull its viewport out and see if they match. If anyone has a suggestion for how to do that I'm happy to give it a try.