Sha256: 74dfc34293d40fc96c07fe904816e09d9c4e836e950c6bff3f06811fbf92352a

Contents?: true

Size: 373 Bytes

Versions: 20

Compression:

Stored size: 373 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Highrise::Pagination do
  
  it "should be tested" do
    Highrise::Person.should_receive(:find).with(:all,{:params=>{:n=>0}}).and_return(["people"])
    Highrise::Person.should_receive(:find).with(:all,{:params=>{:n=>1}}).and_return([])
    Highrise::Person.find_all_across_pages.should == ["people"]
  end
end

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
kmayer-highrise-0.11.0 spec/highrise/pagination_spec.rb
kmayer-highrise-0.11.1 spec/highrise/pagination_spec.rb
kmayer-highrise-0.12.0 spec/highrise/pagination_spec.rb
kmayer-highrise-0.13.0 spec/highrise/pagination_spec.rb
kmayer-highrise-0.8.0 spec/highrise/pagination_spec.rb
kmayer-highrise-0.8.1 spec/highrise/pagination_spec.rb
kmayer-highrise-0.9.0 spec/highrise/pagination_spec.rb
kmayer-highrise-0.9.1 spec/highrise/pagination_spec.rb
kmayer-highrise-0.9.2 spec/highrise/pagination_spec.rb
kmayer-highrise-1.0.1 spec/highrise/pagination_spec.rb
rogerio-augusto-highrise-2.0.4 spec/highrise/pagination_spec.rb
rogerio-augusto-highrise-2.0.3 spec/highrise/pagination_spec.rb
rogerio-augusto-highrise-2.0.2 spec/highrise/pagination_spec.rb
highrise-2.0.1 spec/highrise/pagination_spec.rb
highrise-2.0.0 spec/highrise/pagination_spec.rb
highrise-1.2.0 spec/highrise/pagination_spec.rb
soleone-highrise-0.13.3 spec/highrise/pagination_spec.rb
highrise-1.0.4 spec/highrise/pagination_spec.rb
highrise-1.0.3 spec/highrise/pagination_spec.rb
highrise-1.0.2 spec/highrise/pagination_spec.rb