Test XHR rendering of pages which can load in the sidebar

This commit is contained in:
Tom Hughes 2013-12-07 17:40:19 +00:00
parent 04ad0f6251
commit 3a6dc176f8
3 changed files with 211 additions and 207 deletions

View 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