Sha256: c54a3719d3d2fa5c5cd43d58cd4d09bf7730d7deb9f75aec41c8035d3a3cafcb
Contents?: true
Size: 711 Bytes
Versions: 4
Compression:
Stored size: 711 Bytes
Contents
require 'active_support/test_case' require 'action_dispatch/testing/test_process' class ActiveSupport::TestCase include ActionDispatch::TestProcess def new_attachment(data = nil) data ||= fixture_file_upload('files/rails.tar.gz', 'application/x-gzip') Ckeditor.attachment_file_model.new(:data => data) end def create_attachment(data = nil) attachment = new_attachment(data) attachment.save! attachment end def new_picture(data = nil) data ||= fixture_file_upload('files/rails.png', 'image/png') Ckeditor.picture_model.new(:data => data) end def create_picture(data = nil) picture = new_picture(data) picture.save! picture end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
ckeditor-4.0.9 | test/support/helpers.rb |
ckeditor-4.0.8 | test/support/helpers.rb |
base2_ckeditor-4.0.7 | test/support/helpers.rb |
ckeditor-4.0.7 | test/support/helpers.rb |