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.87.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.86.0 lib/awspec/matcher/belong_to_iam_group.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.85.3 lib/awspec/matcher/belong_to_iam_group.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.85.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.85.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.85.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.84.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.84.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.83.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.82.3 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.82.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.82.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.82.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.81.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.81.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.80.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.80.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.79.2 lib/awspec/matcher/belong_to_iam_group.rb