Sha256: 5320d41888a16e05e917a4e48d8ab7c956cc5cc5d8a923a06793f5c3cfecd72e

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

ENV["RAILS_ENV"] ||= "test"
require_relative "dummy/config/environment.rb"

require "active_support/testing/autorun"

require "activestorage-office-previewer"

class ActiveSupport::TestCase
  self.file_fixture_path = File.expand_path("fixtures/files", __dir__)

  private
    def create_file_blob(key: nil, filename: "racecar.jpg", content_type: "image/jpeg", metadata: nil, record: nil)
      ActiveStorage::Blob.create_and_upload! io: file_fixture(filename).open,
        filename: filename, content_type: content_type, metadata: metadata, record: record
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activestorage-office-previewer-0.1.2 test/test_helper.rb
activestorage-office-previewer-0.1.1 test/test_helper.rb
activestorage-office-previewer-0.1.0 test/test_helper.rb