Sha256: 0183b020bac25f6720848ba57f1eb0689f3977d991c15da5d76fbb117924cd73

Contents?: true

Size: 273 Bytes

Versions: 39

Compression:

Stored size: 273 Bytes

Contents

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
awspec-0.25.3 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.25.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.25.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.25.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.24.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.24.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.24.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.23.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.22.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.22.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.6 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.5 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.4 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.3 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.21.0 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.20.2 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.20.1 lib/awspec/matcher/belong_to_iam_group.rb
awspec-0.20.0 lib/awspec/matcher/belong_to_iam_group.rb