Permalink
Browse files

depend entirely on database_cleaner

  • Loading branch information...
amatsuda committed May 17, 2012
1 parent 44e6799 commit b61db7658184fb347d91f0136a00b278b8ac470c
@@ -153,11 +153,6 @@
end
context 'the last page' do
- before do
- User.delete_all
- 50.times {|i| User.create! :name => "user#{i}"}
- end
-
it 'should not have a more page link' do
get '/users?page=2'
last_document.search('a#next_page_link').should be_empty
@@ -29,7 +29,9 @@ class Project
DataMapper.finalize
DataMapper.auto_migrate!
+ end
+ before do
300.times do |i|
Worker.create(:name => "Worker#{i}", :age => i)
end
@@ -10,7 +10,7 @@
end
describe Kaminari::ActiveRecordExtension do
- before :all do
+ before do
1.upto(100) {|i| User.create! :name => "user#{'%03d' % i}", :age => (i / 10)}
1.upto(100) {|i| GemDefinedModel.create! :name => "user#{'%03d' % i}", :age => (i / 10)}
end
@@ -3,7 +3,6 @@
feature 'Users' do
background do
- User.delete_all
1.upto(100) {|i| User.create! :name => "user#{'%03d' % i}" }
end
scenario 'navigating by pagination links' do

0 comments on commit b61db76

Please sign in to comment.