Sha256: e9c746f12f865d1988e705c1dfe167bff173058ca1d460b9cd05e4828450d0f4

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class PictureTest < ActiveSupport::TestCase
  def teardown
    @picture.destroy rescue nil
  end

  test 'Set file content_type and size' do
    @picture = create_picture

    assert_equal 'rails.png', @picture.data_file_name
    assert_equal 6646, @picture.data_file_size

    if CKEDITOR_BACKEND == :dragonfly
      assert @picture.url_thumb.include?('thumb_rails')
    else
      assert @picture.url_thumb.include?('thumb_rails.png')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ckeditor-5.0.0 test/models/picture_test.rb