test/tumblr4r_test.rb in tumblr4r-0.7.0 vs test/tumblr4r_test.rb in tumblr4r-0.7.1

- old
+ new

@@ -20,11 +20,10 @@ end def teardown end - def test_initialize assert_equal READ_TEST_HOST, @site.hostname assert_nil @site.email assert_nil @site.password @@ -82,9 +81,14 @@ end def test_find_all_with_offset posts = @large_site.find(:all, :offset => 12) assert_equal TOTAL_COUNT-12, posts.size + end + + def test_find_all_with_limit_and_offset + posts = @large_site.find(:all, :offset => 1, :limit => 2) + assert_equal 2, posts.size end # 実際に存在するよりも多いoffsetを指定した場合 def test_find_all_over_offset posts = @large_site.find(:all, :type => "quote", :offset => TOTAL_COUNT + 1)