assert_redirected_to :controller => :browse, :action => :relation, :id => 123
get root_path(:note => 123)
- assert_redirected_to :controller => :browse, :action => :note, :id => 123
+ assert_redirected_to :controller => :notes, :action => :show, :id => 123
get root_path(:query => "test")
assert_redirected_to :controller => :geocoder, :action => :search, :query => "test"
get permalink_path(:code => "wBz3--", :changeset => 4)
assert_response :redirect
- assert_redirected_to :controller => :browse, :action => :changeset, :id => 4, :anchor => "map=3/4.8779296875/3.955078125"
+ assert_redirected_to changeset_path(:id => 4, :anchor => "map=3/4.8779296875/3.955078125")
end
# Test the key page
assert_response :success
assert_template "about"
assert_select "div[lang='ar'][dir='rtl']"
+
+ # Page should still render even with incorrect locale
+ get about_path(:about_locale => "zzz")
+ assert_response :success
+ assert_template "about"
end
# Test the export page
def test_offline
get offline_path
assert_response :success
- assert_template "offline"
+ assert_select ".alert-warning"
end
# Test the rich text preview