mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
We're manually deleting test data in the tests
This commit is contained in:
parent
4da46e85a8
commit
55cda8c7ec
3 changed files with 0 additions and 24 deletions
|
@ -1,21 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
#
|
||||
# kaminari repo's tests successfully runs without DatabaseCleaner now.
|
||||
# DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord
|
||||
|
||||
# class ActiveSupport::TestCase
|
||||
# class << self
|
||||
# def startup
|
||||
# DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
|
||||
# super
|
||||
# end
|
||||
# end
|
||||
|
||||
# setup do
|
||||
# DatabaseCleaner.start
|
||||
# end
|
||||
|
||||
# teardown do
|
||||
# DatabaseCleaner.clean
|
||||
# end
|
||||
# end
|
|
@ -26,5 +26,4 @@ Gem::Specification.new do |s|
|
|||
s.add_development_dependency 'rake', '>= 0'
|
||||
s.add_development_dependency 'rr', '>= 0'
|
||||
s.add_development_dependency 'capybara', '>= 1.0'
|
||||
s.add_development_dependency 'database_cleaner', '>= 1.4.1'
|
||||
end
|
||||
|
|
|
@ -9,8 +9,6 @@ require 'active_record'
|
|||
require 'bundler/setup'
|
||||
Bundler.require
|
||||
|
||||
require 'database_cleaner'
|
||||
|
||||
# Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
|
||||
require 'fake_gem'
|
||||
|
||||
|
|
Loading…
Reference in a new issue