Sha256: ec4d3692522a25e5fff5f8cb80de2ce12410fd699c712f8e8dff411bb4f0af3d

Contents?: true

Size: 367 Bytes

Versions: 213

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

module EacRubyUtils
  module Rspec
    module 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

213 entries across 213 versions & 4 rubygems

Version Path
eac_ruby_utils-0.123.0 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.121.0 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.120.0 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.70.0 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb
eac_tools-0.69.1 sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb