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

- old
+ new

@@ -9,13 +9,14 @@ describe "#convert" do shared_examples "converter" do |format| it "creates file of a chosen format" do matcher = case format - when "eps", "ps" then "be_equivalent_eps_to" - when "svg" then "be_equivalent_svg_to" + when "eps", "ps" then "be_eps" + when "svg" then "be_svg" else "be_equivalent_to" end + with_tmp_dir do |dir| output = File.join(dir, "output.#{format}") status = described_class.start(["-f", format, "-o", output, input]) expect(status).to be Vectory::CLI::STATUS_SUCCESS expect(File.read(output))