- get :index, :params => { :format => "html", :bbox => "4.5,4.5,5.5,5.5" }
+ changesets = create_list(:changeset, 10, :num_changes => 1, :min_lat => 50000000, :max_lat => 50000001, :min_lon => 50000000, :max_lon => 50000001)
+ other_changesets = create_list(:changeset, 10, :num_changes => 1, :min_lat => 0, :max_lat => 1, :min_lon => 0, :max_lon => 1)
+
+ # First check they all show up without a bbox parameter
+ get history_path(:format => "html", :list => "1"), :xhr => true
+ assert_response :success
+ assert_template "index"
+ check_index_result(changesets + other_changesets)
+
+ # Then check with bbox parameter
+ get history_path(:format => "html", :bbox => "4.5,4.5,5.5,5.5")