Skip to content

Commit

Permalink
Remove specs that no longer apply
Browse files Browse the repository at this point in the history
  • Loading branch information
rspeicher committed Aug 9, 2011
1 parent f09364d commit 523d3f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
12 changes: 1 addition & 11 deletions spec/will_paginate_renderers/gmail_spec.rb
Expand Up @@ -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])
Expand Down
10 changes: 0 additions & 10 deletions spec/will_paginate_renderers/twitter_spec.rb
Expand Up @@ -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])
Expand Down

0 comments on commit 523d3f8

Please sign in to comment.