Skip to content

Commit

Permalink
Change default backend to carrierwave
Browse files Browse the repository at this point in the history
  • Loading branch information
galetahub committed Jul 2, 2024
1 parent a7988f3 commit e853e6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion test/controllers/pictures_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit e853e6d

Please sign in to comment.