Sha256: 7ebb63514f864b15001b8a56435b57dcd42242e88c2e2f423af4e656050099a6
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'spec/helper' class TC_PagerController < Ramaze::Controller map '/' helper :pager def page stuff = [1, 2, 3, 4, 5, 6, 7, 8, 9] items, pager = paginate(stuff, :limit => 2) items.inspect end end describe "StackHelper" do before(:all){ ramaze } it "conventional login" do get('/page').body.should == '[1, 2]' get("/page", Ramaze::Pager.trait[:key] => '2').body.should == '[3, 4]' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.2 | spec/ramaze/helper/pager.rb |