Sha256: 11c808c6d681615f7f1bc60aa108c34d819c00bfabddb6573b3ad11c25e89810

Contents?: true

Size: 381 Bytes

Versions: 16

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe TextToImage do
  let(:data) { 'image raw data' }
  let(:service) { described_class.new text }
  let(:text) { 'Image text' }

  before { allow(MiniMagick::Tool::Convert).to receive(:new).and_return(data) }

  describe '#raw' do
    it 'returns raw image data' do
      expect(service.raw).to eq data
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/lib/text_to_image_spec.rb
lcms-engine-0.5.4 spec/lib/text_to_image_spec.rb
lcms-engine-0.5.3 spec/lib/text_to_image_spec.rb
lcms-engine-0.5.2 spec/lib/text_to_image_spec.rb
lcms-engine-0.5.1 spec/lib/text_to_image_spec.rb
lcms-engine-0.5.0 spec/lib/text_to_image_spec.rb
lcms-engine-0.4.2 spec/lib/text_to_image_spec.rb
lcms-engine-0.4.1 spec/lib/text_to_image_spec.rb
lcms-engine-0.4.0 spec/lib/text_to_image_spec.rb
lcms-engine-0.3.1 spec/lib/text_to_image_spec.rb
lcms-engine-0.1.4 spec/lib/text_to_image_spec.rb
lcms-engine-0.3.0 spec/lib/text_to_image_spec.rb
lcms-engine-0.1.3 spec/lib/text_to_image_spec.rb
lcms-engine-0.2.0 spec/lib/text_to_image_spec.rb
lcms-engine-0.1.2 spec/lib/text_to_image_spec.rb
lcms-engine-0.1.0 spec/lib/text_to_image_spec.rb