Sha256: 2185f3f3e027151731222f696073b0c48af4820e1797acb854191a9294834482
Contents?: true
Size: 977 Bytes
Versions: 14
Compression:
Stored size: 977 Bytes
Contents
require "spec_helper" describe Paperclip::Processor do it "instantiates and call #make when sent #make to the class" do processor = double expect(processor).to receive(:make) expect(Paperclip::Processor).to receive(:new).with(:one, :two, :three).and_return(processor) Paperclip::Processor.make(:one, :two, :three) end context "Calling #convert" do it "runs the convert command with Terrapin" do Paperclip.options[:log_command] = false expect(Terrapin::CommandLine).to receive(:new).with("convert", "stuff", {}).and_return(double(run: nil)) Paperclip::Processor.new("filename").convert("stuff") end end context "Calling #identify" do it "runs the identify command with Terrapin" do Paperclip.options[:log_command] = false expect(Terrapin::CommandLine).to receive(:new).with("identify", "stuff", {}).and_return(double(run: nil)) Paperclip::Processor.new("filename").identify("stuff") end end end
Version data entries
14 entries across 14 versions & 1 rubygems