spec/laziness/pager_spec.rb in laziness-0.2.5 vs spec/laziness/pager_spec.rb in laziness-0.2.6

- old
+ new

@@ -4,9 +4,13 @@ it "initializes with a page" do expect(described_class.new(page).page).to eq page end + it "can initialize with a nil page" do + expect(described_class.new(nil).page).to be_nil + end + it "saves the limit" do expect(described_class.new(page).limit).to eq 20 end it "initializes a nil cursor" do