spec/vectory/emf_spec.rb in vectory-0.3.0 vs spec/vectory/emf_spec.rb in vectory-0.4.0

- old
+ new

@@ -33,6 +33,30 @@ it "returns ps content" do expect(Vectory::Emf.from_path(input).to_ps.content) .to be_equivalent_eps_to File.read(reference) end end + + describe "#mime" do + let(:input) { "spec/examples/emf2eps/img.emf" } + + it "returns emf" do + expect(described_class.from_path(input).mime).to eq "image/emf" + end + end + + describe "#height" do + let(:input) { "spec/examples/emf2eps/img.emf" } + + it "returns height" do + expect(described_class.from_path(input).height).to eq 90 + end + end + + describe "#width" do + let(:input) { "spec/examples/emf2eps/img.emf" } + + it "returns width" do + expect(described_class.from_path(input).width).to eq 90 + end + end end