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