Sha256: 40d109416196be36c5b451f88d61f3c6b7956fa62a987aadb5a0a46d08e5dff3
Contents?: true
Size: 584 Bytes
Versions: 6
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' describe Mandrill::WebHook::Image do context 'when given the parameters for an image file' do subject(:image) do Mandrill::WebHook::Image[{ 'name' => 'c', 'type' => 'image/png', 'content' => 'iVBORw0KGgoAAAA....' }] end it 'exposes the file correctly' do expect(image.name).to eql('c') expect(image.type).to eql('image/png') expect(image.base64).to eql(true) expect(image.content).to match(/^iVBORw0K/) expect(image.decoded_content).to match(/^\x89PNG\r\n/n) end end end
Version data entries
6 entries across 6 versions & 1 rubygems