Check for the output to contain a part of the message that is specific to duplicate gems, like "more than once".