Sha256: 66831e147fa0c2d84d571b17cc41487b6f5b8902347bd6080b5cb34b120dc179
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Lolita::Configuration::Page do let(:dbi){ Lolita::DBI::Base.new(Post)} it "should sort by one or more columns" do page=Lolita::Configuration::Page.new(dbi) page.asc(:col1).desc(:col2).sort_columns.last.should == [:col2,:desc] page.sort_columns[0].should==[:col1,:asc] end describe "pagination" do it "should accept Hash params" do page=Lolita::Configuration::Page.new(dbi) page.paginate({:sort_columns=>[:title,[:body,:asc]]},:hold=>true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lolita-3.1.10 | spec/configuration/page_spec.rb |