Der folgende CodeWas ist "Ambiguous regexp literal" in rubocop?
expect(foo).to match /#{MyGem.config.environment_name}/
löst eine rubocop Ausgabe
Warning: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the/if it should be a division.
Kann jemand erklären, was das Problem ist und wie es zu lösen?