]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/browse_controller_test.rb
Test XHR rendering of pages which can load in the sidebar
[rails.git] / test / functional / browse_controller_test.rb
index 5c48a5dc78e84ce9604b3703ddd9201bfdc1c9d3..f1445d957609f4bd23c1e0e650d127e2e6e1bc5e 100644 (file)
@@ -131,11 +131,19 @@ private
     assert_raise ActionController::UrlGenerationError do
       get type
     end
+
     assert_raise ActionController::UrlGenerationError do
       get type, {:id => -10} # we won't have an id that's negative
     end
+
     get type, {:id => id}
     assert_response :success
     assert_template template
+    assert_template :layout => "map"
+
+    xhr :get, type, {:id => id}
+    assert_response :success
+    assert_template template
+    assert_template :layout => "xhr"
   end
 end