Closed
Description
This is due to an issue in the current unparser gem: mbj/unparser#117
You may get an error like this when running a spec:
(string):1:20: error: unexpected token tOP_ASGN
(string):1: hash.[]("foo") += 1
(string):1:
The problem is the unparser incorrectly generates hash.[]("foo") += 1
instead of hash['foo'] += 1
.
The good news its pretty easy to find such expressions and replace them with something like
hash["foo"] = hash["foo"] + 1