Permalink
Browse files

Remove specs that no longer apply

  • Loading branch information...
1 parent f09364d commit 523d3f8ac7a9a8d6b8c6c759c06fb95cb07ee231 @tsigo committed Aug 9, 2011
Showing with 1 addition and 21 deletions.
  1. +1 −11 spec/will_paginate_renderers/gmail_spec.rb
  2. +0 −10 spec/will_paginate_renderers/twitter_spec.rb
@@ -3,20 +3,10 @@
module WillPaginateRenderers
describe Gmail do
before do
- @renderer = Gmail.new
+ @renderer = described_class.new
@renderer.stubs(:url).returns('')
end
- it "should raise error when unprepared" do
- expect { @renderer.send :param_name }.to raise_error
- end
-
- it "should prepare with collection and options" do
- prepare({}, :param_name => 'mypage')
- @renderer.send(:current_page).should eql(1)
- @renderer.send(:param_name).should eql('mypage')
- end
-
it "should have pagination definition" do
prepare({ :total_pages => 1 }, :page_links => true)
@renderer.pagination.should eql([:newest, :newer, :window, :older, :oldest])
@@ -6,16 +6,6 @@ module WillPaginateRenderers
@renderer = Twitter.new
end
- it "should raise error when unprepared" do
- expect { @renderer.send :param_name }.to raise_error
- end
-
- it "should prepare with collection and options" do
- prepare({}, :param_name => 'mypage')
- @renderer.send(:current_page).should eql(1)
- @renderer.send(:param_name).should eql('mypage')
- end
-
it "should have pagination definition" do
prepare({ :total_pages => 1 }, :page_links => true)
@renderer.pagination.should eql([:next_page])

0 comments on commit 523d3f8

Please sign in to comment.