spec/persevere_spec.rb in persevere-0.22.0 vs spec/persevere_spec.rb in persevere-0.23.0

- old
+ new

@@ -182,9 +182,18 @@ json = JSON.parse(result.body) json.length.should == 80 json[0]['id'].should == '21' json[-1]['id'].should == '100' end + + it "should return objects with id's 11 - 15" do + result = @p.retrieve('/Yogo/', {'Range' => 'items=10-14'}) + result.code.should == '206' + json = JSON.parse(result.body) + json.length.should == 5 + json[0]['id'].should == '11' + json[-1]['id'].should == '15' + end after(:all) do @p.delete('/Class/Yogo') end end \ No newline at end of file