Sha256: f499d7817baafe3b76830584d1cf4b366bdee3c74bda6d9af409a8ad6689ab9a

Contents?: true

Size: 257 Bytes

Versions: 12

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :have_metric_filter do |filter_name|
  match do |log_group_name|
    log_group_name.has_metric_filter?(filter_name, @pattern)
  end

  chain :filter_pattern do |pattern|
    @pattern = pattern
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-1.30.0 lib/awspec/matcher/have_metric_filter.rb
awspec-1.29.3 lib/awspec/matcher/have_metric_filter.rb
awspec-1.29.2 lib/awspec/matcher/have_metric_filter.rb
awspec-1.29.1 lib/awspec/matcher/have_metric_filter.rb
awspec-1.29.0 lib/awspec/matcher/have_metric_filter.rb
awspec-1.28.2 lib/awspec/matcher/have_metric_filter.rb
awspec-1.28.1 lib/awspec/matcher/have_metric_filter.rb
awspec-1.28.0 lib/awspec/matcher/have_metric_filter.rb
awspec-1.27.1 lib/awspec/matcher/have_metric_filter.rb
awspec-1.27.0 lib/awspec/matcher/have_metric_filter.rb
awspec-1.26.0 lib/awspec/matcher/have_metric_filter.rb
awspec-1.25.2 lib/awspec/matcher/have_metric_filter.rb