Sha256: 4777cd4873a067b5b8f5b40ffdea889ce29f299b6a349051195da5f4e2c7c90c
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require "spec_helper" RSpec.describe Vectory::Emf do describe "#to_svg" do let(:input) { "spec/examples/emf2svg/img.emf" } let(:reference) { "spec/examples/emf2svg/ref.svg" } it "returns svg content" do expect(Vectory::Emf.from_path(input).to_svg.content) .to be_equivalent_to File.read(reference) end it "strips the starting xml tag" do expect(Vectory::Emf.from_path(input).to_svg.content) .not_to start_with "<?xml" end end describe "#to_eps" do let(:input) { "spec/examples/emf2eps/img.emf" } let(:reference) { "spec/examples/emf2eps/ref.eps" } it "returns eps content" do expect(Vectory::Emf.from_path(input).to_eps.content) .to be_equivalent_eps_to File.read(reference) end end describe "#to_ps" do let(:input) { "spec/examples/emf2ps/img.emf" } let(:reference) { "spec/examples/emf2ps/ref.ps" } it "returns ps content" do expect(Vectory::Emf.from_path(input).to_ps.content) .to be_equivalent_eps_to File.read(reference) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vectory-0.3.0 | spec/vectory/emf_spec.rb |