Test XHR rendering of pages which can load in the sidebar
This commit is contained in:
parent
04ad0f6251
commit
3a6dc176f8
3 changed files with 211 additions and 207 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue