Sha256: ab8c4415d10d6da57a9bb91307bfd52aa8f91b8e6af170dd49c1c73056914601
Contents?: true
Size: 659 Bytes
Versions: 4
Compression:
Stored size: 659 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe RailsPaginate::Pagers::Base do let(:collection) { (1..12).to_a.paginate :page => 5 } let(:options) { { :test => 1, :sowas => 2 } } subject { RailsPaginate::Pagers::Base.new collection, options } specify { should respond_to :visible_pages } it "#visible_pages should raise StandardError" do lambda { subject.visible_pages }.should raise_error(StandardError) end it "#options should same as given options" do subject.options.should eq options end it "#collection should same as given collection" do subject.collection.should eq collection end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rails_paginate-0.0.7 | spec/pagers/base_spec.rb |
rails_paginate-0.0.6 | spec/pagers/base_spec.rb |
rails_paginate-0.0.5 | spec/pagers/base_spec.rb |
rails_paginate-0.0.4 | spec/pagers/base_spec.rb |