Sha256: 0e653cddd19cd2a16c6f687170e78e1fae66190f0037ec10d2dac34223baee72

Contents?: true

Size: 272 Bytes

Versions: 191

Compression:

Stored size: 272 Bytes

Contents

RSpec::Matchers.define :belong_to_iam_group do |group_id|
  match do |type|
    groups = type.select_iam_group_by_user_name(type.resource_via_client[:user_name])
    groups.find do |group|
      group.group_id == group_id || group.group_name == group_id
    end
  end
end

Version data entries

191 entries across 191 versions & 4 rubygems

Version Path
awspec-0.79.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.79.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.78.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.77.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.77.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.76.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.76.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.75.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.75.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.75.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.74.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.74.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.73.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.73.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.73.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.72.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.71.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.70.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.69.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.69.0 lib/awspec/matcher/belong_to_iam_group.rb