Sha256: 55fe698966f823ecda448b4ecf87dcec585ff6138163d2631306ac1a1346eddd

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module EacRubyUtils
  module Rspec
    class Setup
      module Conditionals
        def conditional(tag, &condition)
          message = condition.call
          return if message.blank?

          puts("[WARN] Excluded tag: #{tag}: #{message}")
          rspec_config.filter_run_excluding tag
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eac_ruby_utils-0.72.1 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.72.0 lib/eac_ruby_utils/rspec/setup/conditionals.rb