Sha256: 45c4796feaea440393f75512cf91909e35a25ef9016240ec391769565fab3a4e

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require "spec_helper"

RSpec.describe MiniMagick::Utilities do
  describe ".which" do
    it "identifies when mogrify exists" do
      expect(MiniMagick::Utilities.which('mogrify')).not_to be_nil
    end

    it "identifies when gm exists" do
      expect(MiniMagick::Utilities.which('gm')).not_to be_nil
    end

    it "returns nil on nonexistent executables" do
      expect(MiniMagick::Utilities.which('yogrify')).to be_nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mini_magick-4.0.0 spec/lib/mini_magick/utilities_spec.rb
mini_magick-4.0.0.rc spec/lib/mini_magick/utilities_spec.rb