Sha256: 2f28f2149aa79033b21c75594cebf8d1556b24c2ddc1911736c1146996afe1d0
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
require 'test_helper' class AttachmentFileTest < ActiveSupport::TestCase test "Set file content_type and size" do @attachemnt = create_attachemnt assert_equal @attachemnt.data_content_type, "application/x-gzip" # TODO: fix filename parameterization if CKEDITOR_BACKEND == :paperclip assert_equal @attachemnt.data_file_name, "rails_tar.gz" else assert_equal @attachemnt.data_file_name, "rails.tar.gz" end assert_equal @attachemnt.data_file_size, 6823 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-3.6.3 | test/models/attachment_file_test.rb |
ckeditor-3.6.2 | test/models/attachment_file_test.rb |
ckeditor-3.6.1 | test/models/attachment_file_test.rb |