Skip to content

Commit

Permalink
We don't need to state that we're expecting PageNumber when comparing…
Browse files Browse the repository at this point in the history
… numbers.
  • Loading branch information
dbackeus committed Oct 25, 2011
1 parent 6ca3f64 commit 4438f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/finders/mongoid_spec.rb
Expand Up @@ -106,8 +106,8 @@ class MongoidModel

describe "#current_page" do
it "should return current_page" do
criteria.paginate(:page => 1).current_page.should == WillPaginate::PageNumber(1)
criteria.paginate(:page => 3).current_page.should == WillPaginate::PageNumber(3)
criteria.paginate(:page => 1).current_page.should == 1
criteria.paginate(:page => 3).current_page.should == 3
end

it "should be casted to PageNumber" do
Expand Down

0 comments on commit 4438f09

Please sign in to comment.