Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 477 Bytes
require File.dirname(__FILE__) + '/spec_helper.rb'
require File.dirname(__FILE__) + '/spec_models.rb'
describe RelaxDB::PaginateParams do
it "should be invalid if hasn't been initialized with both a startkey and endkey" do
RelaxDB::PaginateParams.new({}).should be_invalid
end
it "should be valid if initialized with both a startkey and endkey" do
pp = RelaxDB::PaginateParams.new :startkey => nil, :endkey => nil
pp.should_not be_invalid
end
end