class RuboCop::Cop::RSpec::MatchArray

Checks where ‘match_array` is used.

This cop checks for the following:

@example

# bad
it { is_expected.to match_array([content1, content2]) }

# good
it { is_expected.to contain_exactly(content1, content2) }

# good
it { is_expected.to match_array([content] + array) }

# good
it { is_expected.to match_array(%w(tremble in fear foolish mortals)) }