}
function loadData() {
- var data = {};
+ var data = {list: '1'};
if (window.location.pathname === '/history') {
- data = {bbox: map.getBounds().wrap().toBBoxString()};
+ data.bbox = map.getBounds().wrap().toBBoxString();
}
$.ajax({
assert_template "changeset/history"
assert_select "h2", :text => "Changesets", :count => 1
- get :list, {:format => "html", :bbox => '-180,-90,90,180'}
+ get :list, {:format => "html", :list => '1', :bbox => '-180,-90,90,180'}
assert_response :success
assert_template "list"