I foolishly started off a test method like so:
def test_retry_exception_strategy_max_tries
MAX_TRIES = 3
. . .
end
I was greeted with:
dynamic constant assignment (SyntaxError)
So, I decided to rename "MAX_TRIES" to "max_tries" and call it a day. The rename refactoring fails, however, with the error message "Same name". Given that variable names in Ruby are case sensitive, it is not the same name. It may be the case that what I ultimately wish to do is simply not possible, but the error message is misleading in any event.
For the record, it doesn't seem that the rename refactoring automatically upcases either, so the aforementioned error message doesn't seem to make sense in any context.