mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
To avoid validation errors in the tests
This commit is contained in:
parent
6786e20733
commit
b47a7f8b85
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ class KaminariTestApp < Rails::Application
|
|||
config.eager_load = false
|
||||
# Rails.root
|
||||
config.root = File.dirname(__FILE__)
|
||||
config.active_record.belongs_to_required_by_default = false if (Rails::VERSION::MAJOR >= 5) && defined?(ActiveRecord)
|
||||
end
|
||||
Rails.backtrace_cleaner.remove_silencers!
|
||||
Rails.application.initialize!
|
||||
|
|
Loading…
Reference in a new issue