Update notes_controller_test to use note and note_comment factories
[rails.git] / test / http / geocoder_ca.yml
index 754885a5b691792b75674aafb8c39b084fd2e9f6..88a3fdc94a8d5040febd86ee2ff039940e4f92a5 100644 (file)
@@ -1,48 +1,54 @@
-/?geoit=XML&postal=A1B+2C3: |
-  <?xml version="1.0" encoding="UTF-8"?>
-  <geodata>
-    <latt>47.172520</latt>
-    <longt>-55.440515</longt>
-    <postal>A1B2C3</postal>
-    <standard>
-      <stnumber>1</stnumber>
-      <staddress/>
-      <city>ST. JOHN&amp;'S</city>
-      <prov>NL</prov>
-      <confidence>0.9</confidence>
-    </standard>
-  </geodata>
+/?geoit=XML&postal=A1B+2C3: 
+  code: 200 
+  body: |
+    <?xml version="1.0" encoding="UTF-8"?>
+    <geodata>
+        <latt>47.172520</latt>
+      <longt>-55.440515</longt>
+      <postal>A1B2C3</postal>
+      <standard>
+        <stnumber>1</stnumber>
+        <staddress/>
+        <city>ST. JOHN&amp;'S</city>
+        <prov>NL</prov>
+        <confidence>0.9</confidence>
+      </standard>
+    </geodata>
 
-/?geoit=XML&postal=k1a+0b1: |
-  <?xml version="1.0" encoding="UTF-8"?>
-  <geodata>
-    <latt>45.375437</latt>
-    <longt>-75.691041</longt>
-    <postal>K1A0B1</postal>
-    <standard>
-      <stnumber>1</stnumber>
-      <staddress/>
-      <city>OTTAWA</city>
-      <prov>ON</prov>
-      <confidence>0.9</confidence>
-    </standard>
-  </geodata>
-
-/?geoit=XML&postal=Q0Q+0Q0: |
-  <?xml version="1.0" encoding="UTF-8"?>
-  <geodata>
-    <error>
-      <code>008</code>
-      <description>Your request did not produce any results. Check your spelling and try again.</description>
-    </error>
-    <latt/>
-    <longt>-</longt>
-    <postal>Q0Q0Q0</postal>
-    <standard>
-      <stnumber>1</stnumber>
-      <staddress/>
-      <city/>
-      <prov/>
-      <confidence>0.9</confidence>
-    </standard>
-  </geodata>
+/?geoit=XML&postal=k1a+0b1:
+  code: 200 
+  body: |
+    <?xml version="1.0" encoding="UTF-8"?>
+    <geodata>
+      <latt>45.375437</latt>
+      <longt>-75.691041</longt>
+      <postal>K1A0B1</postal>
+      <standard>
+        <stnumber>1</stnumber>
+        <staddress/>
+        <city>OTTAWA</city>
+        <prov>ON</prov>
+        <confidence>0.9</confidence>
+      </standard>
+    </geodata>
+  
+/?geoit=XML&postal=Q0Q+0Q0:
+  code: 200 
+  body: |
+    <?xml version="1.0" encoding="UTF-8"?>
+    <geodata>
+      <error>
+        <code>008</code>
+        <description>Your request did not produce any results. Check your spelling and try again.</description>
+      </error>
+      <latt/>
+      <longt>-</longt>
+      <postal>Q0Q0Q0</postal>
+      <standard>
+        <stnumber>1</stnumber>
+        <staddress/>
+        <city/>
+        <prov/>
+        <confidence>0.9</confidence>
+      </standard>
+    </geodata>