Sha256: cbf95447bacafc5a8f5a88be9d1247e27a5d7052f8f1197710f0b2cd8cd06d72
Contents?: true
Size: 540 Bytes
Versions: 11
Compression:
Stored size: 540 Bytes
Contents
require "spec/spec_helper" describe Irwi::Paginators::None do before(:each) do @p = Irwi::Paginators::None.new end specify "should paginate collection - call find" do coll = mock "Collection" coll.should_receive(:find).with(:all,{}).and_return("full collection") @p.paginate( coll, :page => 10 ).should == "full collection" end specify "should render paginated section" do a = nil @p.paginated_section "view", "collection" do a = true end a.should be_true end end
Version data entries
11 entries across 11 versions & 1 rubygems