From e853e6dedffbc7eb98530a9d6c9bfe20aedfd1f8 Mon Sep 17 00:00:00 2001 From: Igor Galeta Date: Tue, 2 Jul 2024 14:37:21 +0300 Subject: [PATCH] Change default backend to carrierwave --- CHANGELOG.md | 1 + test/controllers/pictures_controller_test.rb | 2 +- test/test_helper.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d39c51277..096076638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Upgrade CKEditor to 4.22.1 version * Bump ruby version to 2.7.6 + * Temporarily turn off paperclip gem support ## Ckeditor 5.1.1 (12-1-2021) diff --git a/test/controllers/pictures_controller_test.rb b/test/controllers/pictures_controller_test.rb index 011fbc843..942d6b188 100644 --- a/test/controllers/pictures_controller_test.rb +++ b/test/controllers/pictures_controller_test.rb @@ -53,7 +53,7 @@ def teardown end test 'destroy action via filebrowser' do - @picture = Ckeditor::Picture.create data: @image + @picture = Ckeditor::Picture.create! data: @image assert_difference 'Ckeditor::Picture.count', -1 do delete :destroy, params: { id: @picture.id } diff --git a/test/test_helper.rb b/test/test_helper.rb index 0d36c6c00..e1e2f7080 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -3,7 +3,7 @@ # Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' CKEDITOR_ORM = (ENV['CKEDITOR_ORM'] || :active_record).to_sym -CKEDITOR_BACKEND = (ENV['CKEDITOR_BACKEND'] || :paperclip).to_sym +CKEDITOR_BACKEND = (ENV['CKEDITOR_BACKEND'] || :carrierwave).to_sym $:.unshift File.dirname(__FILE__) puts "\n==> Ckeditor.orm = #{CKEDITOR_ORM.inspect}. CKEDITOR_ORM = (active_record|mongoid)"