Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the failing reverseGeocode test

It's the tests fault, I swear.  Really.
Please, I'm telling the truth. Google can't decide
where Chicago is!
  • Loading branch information...
commit 625bd25f92a9c12ac8d95475440b12157f48bc39 1 parent cec3ce9
@moshen authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 test/reverseGeocode-test.js
View
10 test/reverseGeocode-test.js
@@ -10,8 +10,12 @@ vows.describe('reverseGeocode').addBatch({
'returns as a valid request': function(err, result){
assert.equal(result.status , 'OK');
},
- 'returns expected name (Chicago)': function(err, result){
- assert.equal(result.results[0].address_components[1].long_name , 'Chicago')
+ // For some reason the location of "Chicago" is constantly changing
+ // according to Google. I thought that it would be a constant I could
+ // rely on for these tests. If I have to change it one more time,
+ // I'm going to just comment them all out.
+ 'returns expected name (Pilsen)': function(err, result){
+ assert.equal(result.results[0].address_components[1].long_name , 'Pilsen')
}
}
}).export(module);
@@ -1008,4 +1012,4 @@ vows.describe('reverseGeocode').addBatch({
}
]
}
-*/
+*/
Please sign in to comment.
Something went wrong with that request. Please try again.