class RuboCop::Cop::RSpec::ContainExactly

Checks where ‘contain_exactly` is used.

This cop checks for the following:

@example

# bad
it { is_expected.to contain_exactly(*array1, *array2) }

# good
it { is_expected.to match_array(array1 + array2) }

# good
it { is_expected.to contain_exactly(content, *array) }