Sha256: dc9836932068d3c31687cc49a24b4b297c0ed5c0f406b9770e168c58adff3032
Contents?: true
Size: 700 Bytes
Versions: 6
Compression:
Stored size: 700 Bytes
Contents
require 'active_support/test_case' require 'action_dispatch/testing/test_process' class ActiveSupport::TestCase include ActionDispatch::TestProcess def new_attachemnt(data = nil) data ||= fixture_file_upload('files/rails.tar.gz', 'application/x-gzip') Ckeditor::AttachmentFile.new(:data => data) end def create_attachemnt(data = nil) attachemnt = new_attachemnt(data) attachemnt.save! attachemnt end def new_picture(data = nil) data ||= fixture_file_upload('files/rails.png', 'image/png') Ckeditor::Picture.new(:data => data) end def create_picture(data = nil) picture = new_picture(data) picture.save! picture end end
Version data entries
6 entries across 6 versions & 1 rubygems