Sha256: 9625f5b70b0f7efcc7291857646baacfc20491aba6442d4de3f5847e9025dd0d

Contents?: true

Size: 276 Bytes

Versions: 191

Compression:

Stored size: 276 Bytes

Contents

RSpec::Matchers.define :belong_to_metric do |name|
  match do |type|
    if @namespace
      type.namespace == @namespace && type.metric_name == name
    else
      type.metric_name == name
    end
  end

  chain :namespace do |namespace|
    @namespace = namespace
  end
end

Version data entries

191 entries across 191 versions & 4 rubygems

Version Path
awspec-1.25.1 lib/awspec/matcher/belong_to_metric.rb
awspec-1.25.0 lib/awspec/matcher/belong_to_metric.rb
awspec-1.24.4 lib/awspec/matcher/belong_to_metric.rb
awspec-1.24.3 lib/awspec/matcher/belong_to_metric.rb
awspec-1.24.2 lib/awspec/matcher/belong_to_metric.rb
awspec-1.24.1 lib/awspec/matcher/belong_to_metric.rb
awspec-1.24.0 lib/awspec/matcher/belong_to_metric.rb
awspec-1.23.0 lib/awspec/matcher/belong_to_metric.rb
awspec-1.22.1 lib/awspec/matcher/belong_to_metric.rb
awspec-1.22.0 lib/awspec/matcher/belong_to_metric.rb
awspec-1.21.1 lib/awspec/matcher/belong_to_metric.rb
awspec-1.21.0 lib/awspec/matcher/belong_to_metric.rb
awspec-1.20.0 lib/awspec/matcher/belong_to_metric.rb
awspec-1.19.2 lib/awspec/matcher/belong_to_metric.rb
awspec-1.19.1 lib/awspec/matcher/belong_to_metric.rb
awspec-1.19.0 lib/awspec/matcher/belong_to_metric.rb
cthiesfork-awspec-1.2.4 lib/awspec/matcher/belong_to_metric.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/matcher/belong_to_metric.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/matcher/belong_to_metric.rb
awspec-1.18.6 lib/awspec/matcher/belong_to_metric.rb