spec/vectory/emf_spec.rb in vectory-0.2.0 vs spec/vectory/emf_spec.rb in vectory-0.3.0
- old
+ new
@@ -1,11 +1,11 @@
require "spec_helper"
RSpec.describe Vectory::Emf do
describe "#to_svg" do
let(:input) { "spec/examples/emf2svg/img.emf" }
- let(:reference) { "spec/examples/emf2svg/img.svg" }
+ 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
@@ -16,20 +16,20 @@
end
end
describe "#to_eps" do
let(:input) { "spec/examples/emf2eps/img.emf" }
- let(:reference) { "spec/examples/emf2eps/img.eps" }
+ 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/img.ps" }
+ 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