Sha256: 1dc9b5d75615970b8e14a5428ff23b4467fc46676144db92327b1defb0802376
Contents?: true
Size: 499 Bytes
Versions: 5
Compression:
Stored size: 499 Bytes
Contents
require "spec_helper" describe ChunkyPNG::Canvas do describe ".from_data_url" do it "should import an image from a data URL" do data_url = reference_canvas("operations").to_data_url expect(ChunkyPNG::Canvas.from_data_url(data_url)).to eql reference_canvas("operations") end it "should raise an exception if the string is not a proper data URL" do expect { ChunkyPNG::Canvas.from_data_url("whatever") }.to raise_error(ChunkyPNG::SignatureMismatch) end end end
Version data entries
5 entries across 5 versions & 1 rubygems