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-1.25.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.25.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.24.4 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.24.3 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.24.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.24.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.24.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.23.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.22.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.22.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.21.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.21.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.20.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.19.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.19.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.19.0 lib/awspec/matcher/belong_to_iam_group.rb
cthiesfork-awspec-1.2.4 lib/awspec/matcher/belong_to_iam_group.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/matcher/belong_to_iam_group.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/matcher/belong_to_iam_group.rb
awspec-1.18.6 lib/awspec/matcher/belong_to_iam_group.rb