diff --git a/test/unit/http/test-http-select-basic.rb b/test/unit/http/test-http-select-basic.rb index ee226d532a..684f46564f 100644 --- a/test/unit/http/test-http-select-basic.rb +++ b/test/unit/http/test-http-select-basic.rb @@ -755,6 +755,42 @@ def test_xml assert_select_xml(expected, :table => "users") end + def test_xml_with_offset + create_users_table + load_many_users + expected = < + + + + + +1 +moritan +モリタン +100 + + +3 +ryoqun +Ryo Onodera +200 + + +2 +taporobo +タポロボ +100 + + + + + +EOF + assert_select_xml(expected, + {:table => "users", :sortby => "_key", :offset => 2}) + end + def test_no_existent_key populate_users