+ def test_index_after_id
+ changeset1 = create(:changeset, :num_changes => 1)
+ changeset2 = create(:changeset, :num_changes => 1)
+
+ get history_path(:format => "html", :after => changeset1.id), :xhr => true
+ assert_response :success
+ assert_template "history"
+ assert_template :layout => "xhr"
+ assert_select "h2", :text => "Changesets", :count => 1
+
+ get history_path(:format => "html", :list => "1", :after => changeset1.id), :xhr => true
+ assert_response :success
+ assert_template "index"
+
+ check_index_result [changeset2]
+ end
+