Sha256: e5067ab3dedb81d83d3ce9681fdd322654b13bc72e0708317ed34e80ab917c0f

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

require "bundler/setup"
require "mini_magick"
require "pry"

require_relative "support/helpers"

RSpec.configure do |config|
  config.disable_monkey_patching!
  config.formatter = "documentation"
  config.color = true
  config.fail_fast = true unless ENV["CI"]

  [:imagemagick, :graphicsmagick].each do |cli|
    config.around(cli: cli) do |example|
      MiniMagick.with_cli(cli) { example.run }
    end
    config.around(skip_cli: cli) do |example|
      example.run unless example.metadata[:cli] == cli
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mini_magick-4.0.0 spec/spec_helper.rb
mini_magick-4.0.0.rc spec/spec_helper.rb